/ Published in: Apache
stop bandwidth theft!
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
#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]