View Single Post
Old 2005-03-23, 05:58 AM   #4
Jel
I'm the only guy in the world who has to wake up to have a nightmare
 
Jel's Avatar
 
Join Date: Feb 2004
Location: London, United Kingdom
Posts: 1,895
whoops, not to clear there, should have posted this one:

RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://(www\.)?yourdomain.com.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://(www\.)?yourdomain.com:80.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://(www\.)?google.com.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://(www\.)?Googlebot-Image*$ [NC]


RewriteRule .*[Jj][Pp][Gg]$|.*[Gg][Ii][Ff]$ http://www.yourdomain.com/hotlink/hotlinkimage.jpg

Then you need to put a seperate htaccess inside your special hotlinking folder that will allow the hotlinking of THAT image:

RewriteEngine on
RewriteRule ^.*$ -

Hope that helps
Jel is offline   Reply With Quote