Return to Snippet

Revision: 32126
at September 19, 2010 03:00 by Orlandoo

Initial Code
Options +FollowSymlinks
#Protect against hotlinking
RewriteEngine On
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://(www.)? [nc]
RewriteRule .*.(gif|jpg|png)$[nc]

Initial URL

Initial Description
Tired of people using your bandwidth by putting the images hosted on your server on their website? Add the following code at the bottom of your .htaccess file to prevent hotlinking.

Initial Title
Prevent Hotlinking

Initial Tags

Initial Language