www.robert-pace.com

05 Feb

Anti-HotLinking Via .HTACCESS

The below few lines in our.htaccess file are doing an excellent job of protecting me and my wife’s three domains against hotlinking (bandwidth theft).

RewriteEngine on
RewriteCond %{HTTP_REFERER} !^http://linmu.robert-pace.com/.*$      [NC]
RewriteCond %{HTTP_REFERER} !^http://linmu.robert-pace.com$      [NC]
RewriteCond %{HTTP_REFERER} !^http://members.robert-pace.com/.*$      [NC]
RewriteCond %{HTTP_REFERER} !^http://members.robert-pace.com$      [NC]
RewriteCond %{HTTP_REFERER} !^http://mesmeraj.robert-pace.com/.*$      [NC]
RewriteCond %{HTTP_REFERER} !^http://mesmeraj.robert-pace.com$      [NC]
RewriteCond %{HTTP_REFERER} !^http://www.robert-pace.com/.*$      [NC]
RewriteCond %{HTTP_REFERER} !^http://robert-pace.com$      [NC]
RewriteCond %{HTTP_REFERER} !^http://www.linmu.robert-pace.com/.*$      [NC]
RewriteCond %{HTTP_REFERER} !^http://www.linmu.robert-pace.com$      [NC]
RewriteCond %{HTTP_REFERER} !^http://www.members.robert-pace.com/.*$      [NC]
RewriteCond %{HTTP_REFERER} !^http://www.members.robert-pace.com$      [NC]
RewriteCond %{HTTP_REFERER} !^http://www.mesmeraj.robert-pace.com/.*$      [NC]
RewriteCond %{HTTP_REFERER} !^http://www.mesmeraj.robert-pace.com$      [NC]
RewriteCond %{HTTP_REFERER} !^http://www.robert-pace.com/.*$      [NC]
RewriteCond %{HTTP_REFERER} !^http://www.robert-pace.com$      [NC]
RewriteCond %{HTTP_REFERER} !^http://www.mesmeraj.com/.*$      [NC]
RewriteCond %{HTTP_REFERER} !^http://www.mesmeraj.com$      [NC]
RewriteCond %{HTTP_REFERER} !^http://www.lifeisnotmadeup.com/.*$      [NC]
RewriteCond %{HTTP_REFERER} !^http://www.lifeisnotmadeup.com$      [NC]
RewriteCond %{HTTP_REFERER} !^http://www.livejournal.com/.*$      [NC]
RewriteCond %{HTTP_REFERER} !^http://www.livejournal.com$      [NC]
RewriteRule .*\.(jpg|jpeg|gif|png|bmp)$ images/nohotlink.jpg [L]

Leave a Reply

You must be logged in to post a comment.

© 2024 www.robert-pace.com | Entries (RSS) and Comments (RSS)