View Single Post
Old 05-25-2005, 11:44 AM  
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