Return to Snippet

Revision: 55635
at February 15, 2012 00:12 by ederfortunatO


Initial Code
#Stop Image Hotlinking
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^http(s)?://(www.)?yourdomain.com [NC]
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !google. [NC]
RewriteCond %{HTTP_REFERER} !search?q=cache [NC]
RewriteCond %{HTTP_REFERER} !msn. [NC]
RewriteCond %{HTTP_REFERER} !yahoo. [NC]
RewriteCond %{REQUEST_URI} !^/images/fake_image.jpg$
RewriteRule .(jpe?g|png|gif)$ /images/fake_image.jpg [NC,R,L]

Initial URL

                                

Initial Description
stop bandwidth theft!

Initial Title
Prevent Image Hotlinking

Initial Tags
htaccess, apache

Initial Language
Apache