Posted By

no4h on 12/19/11


Tagged

wordpress htaccess


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

Kurt


How to: Protect your WordPress blog from hotlinking


 / Published in: Apache
 

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

FWIW

  1. RewriteEngine On
  2. #Replace ?mysite.com/ with your blog url
  3. RewriteCond %{HTTP_REFERER} !^http://(. .)?mysite.com/ [NC]
  4. RewriteCond %{HTTP_REFERER} !^$
  5. #Replace /images/nohotlink.jpg with your "don't hotlink" image url
  6. RewriteRule .*.(jpe?g|gif|bmp|png)$ /images/nohotlink.jpg [L]

Report this snippet  

You need to login to post a comment.