Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar Mark Forums Read
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 05-25-2005, 11:44 AM   #1
sixxxthsense
Confirmed User
 
Join Date: Aug 2004
Location: Toronto
Posts: 2,421
Using .htaccess for Hotlink Protection. How to allow Google?

I've enable hotlink protection on all my sites, now how do I allow google to hotlink images from my site. For example when doing an image search, I want them to cache my images.

Will this code work???
Code:
RewriteCond %{HTTP_REFERER} !^http://.*google.([^/]+)/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://.*google.([^/]+)$ 	[NC]
sixxxthsense is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-25-2005, 11:54 AM   #2
sixxxthsense
Confirmed User
 
Join Date: Aug 2004
Location: Toronto
Posts: 2,421
come on, someone has to know, dont tell me today is ALL SURFERS day!
sixxxthsense is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-25-2005, 11:58 AM   #3
joechip
Registered User
 
Join Date: Apr 2003
Posts: 27
Quote:
Originally Posted by sixxxthsense
I've enable hotlink protection on all my sites, now how do I allow google to hotlink images from my site. For example when doing an image search, I want them to cache my images.

Will this code work???
Code:
RewriteCond %{HTTP_REFERER} !^http://.*google.([^/]+)/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://.*google.([^/]+)$ 	[NC]
Google Images doesn't hotlink your thumbnails, so you can still get a thumbnail linked to your gallery or whatever on the image search without letting them hotlink to your pics.
joechip is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-25-2005, 12:01 PM   #4
sixxxthsense
Confirmed User
 
Join Date: Aug 2004
Location: Toronto
Posts: 2,421
Quote:
Originally Posted by joechip
Google Images doesn't hotlink your thumbnails, so you can still get a thumbnail linked to your gallery or whatever on the image search without letting them hotlink to your pics.
so the pic won't be brokeN???? how will they grab a cach of it then?
sixxxthsense is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-25-2005, 12:04 PM   #5
sickkittens
I am a meat popsicle.
 
Join Date: Jul 2002
Posts: 25,100
How do I change my image in Google to forward surfers a given site (in the frame) when they click on the thumb?
__________________

HIGHEST PAYOUTS FOR NO-CONSOLE TOURS IN THE ENTIRE INDUSTRY!

THIS SIG CAN BE YOURS FOR $200 - ICQ: 78881543
sickkittens is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-25-2005, 12:05 PM   #6
Lycanthrope
Confirmed User
 
Lycanthrope's Avatar
 
Industry Role:
Join Date: Jan 2004
Location: Wisconsin
Posts: 4,517
joechip is partly correct...

However, make sure you allow null referrers if you want the spiders to find your images, otherwise they'll redirect per your hotlink instructions.

This says, allow null referrers and requests from my domain only to display images. Send all other requests to hotlink.html:

RewriteEngine On
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://(www\.)?yourdomain.com.*$ [NC]
RewriteRule .*[Jj][Pp][Gg]$|.*[Jj][Pp][Ee][Gg]$|.*[Gg][Ii][Ff]$ http://www.yourdomain.com/hotlink.html
__________________
Lycanthrope is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-25-2005, 12:06 PM   #7
Lycanthrope
Confirmed User
 
Lycanthrope's Avatar
 
Industry Role:
Join Date: Jan 2004
Location: Wisconsin
Posts: 4,517
Quote:
Originally Posted by sickkittens
How do I change my image in Google to forward surfers a given site (in the frame) when they click on the thumb?
Use a framebuster script and you won't have to worry about the site getting framed.
__________________
Lycanthrope is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-25-2005, 12:12 PM   #8
Manowar
jellyfish  
 
Join Date: Dec 2003
Posts: 71,528
http://www.businessvoyeur.com/2005-0...nking-in-depth
Manowar is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-25-2005, 12:23 PM   #9
sixxxthsense
Confirmed User
 
Join Date: Aug 2004
Location: Toronto
Posts: 2,421
Quote:
Originally Posted by Lycanthrope
joechip is partly correct...

However, make sure you allow null referrers if you want the spiders to find your images, otherwise they'll redirect per your hotlink instructions.

This says, allow null referrers and requests from my domain only to display images. Send all other requests to hotlink.html:

RewriteEngine On
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://(www\.)?yourdomain.com.*$ [NC]
RewriteRule .*[Jj][Pp][Gg]$|.*[Jj][Pp][Ee][Gg]$|.*[Gg][Ii][Ff]$ http://www.yourdomain.com/hotlink.html
I've got that part, I just wanna know how to allow google's domain cuz google has .com, .ca, .uk and all these others ... I belive that there is a single RewriteCond line that does it
sixxxthsense is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-25-2005, 09:50 PM   #10
sixxxthsense
Confirmed User
 
Join Date: Aug 2004
Location: Toronto
Posts: 2,421
bump for night shift
sixxxthsense is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks
Thread Tools



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.