Return to Snippet

Revision: 54288
at December 19, 2011 02:34 by no4h


Updated Code
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]

Revision: 54287
at December 19, 2011 02:30 by no4h


Initial Code
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]

Initial URL
http://www.wprecipes.com/how-to-protect-your-wordpress-blog-from-hotlinking

Initial Description
FWIW

Initial Title
How to: Protect your WordPress blog from hotlinking

Initial Tags
wordpress, htaccess

Initial Language
Apache