/ Published in: Apache

Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
RewriteEngine On RewriteCond %{HTTP_REFERER} !^http://(.+\.)?mysite\.com/ [NC] RewriteCond %{HTTP_REFERER} !^http://(.+\.)?google\.com/ [NC] RewriteCond %{HTTP_REFERER} !^http://(.+\.)?bloglines\.com/ [NC] RewriteCond %{HTTP_REFERER} !^$ RewriteCond %{REQUEST_FILENAME} !hotlink.png$ RewriteRule .*\.(jpe?g|gif|bmp|png)$ http://mysite.com/img/hotlink.png [L]
Comments
