![]() |
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] |
come on, someone has to know, dont tell me today is ALL SURFERS day!
|
Quote:
|
Quote:
|
How do I change my image in Google to forward surfers a given site (in the frame) when they click on the thumb?
|
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 |
Quote:
|
|
Quote:
|
bump for night shift :)
|
All times are GMT -7. The time now is 03:45 PM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123