/ Published in: Apache
FWIW
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
RewriteEngine On #Replace ?mysite.com/ with your blog url RewriteCond %{HTTP_REFERER} !^http://(. .)?mysite.com/ [NC] RewriteCond %{HTTP_REFERER} !^$ #Replace /images/nohotlink.jpg with your "don't hotlink" image url RewriteRule .*.(jpe?g|gif|bmp|png)$ /images/nohotlink.jpg [L]
URL: http://www.wprecipes.com/how-to-protect-your-wordpress-blog-from-hotlinking