Return to Snippet

Revision: 28159
at July 3, 2010 04:54 by jeromegamez


Updated Code
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://(www\.)?yourdomain.com/.*$ [NC]
#RewriteRule \.(gif|jpg|png)$ - [F]
#RewriteRule \.(gif|jpg|png)$ http://www.yourdomain.com/youfilthythief.gif [R,L]

Revision: 28158
at July 2, 2010 12:38 by jeromegamez


Initial Code
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://(www\.)?yourdomain.com/.*$ [NC]
#RewriteRule \.(gif|jpg)$ – [F]
#RewriteRule \.(gif|jpg)$ http://www.yourdomain.com/stealingisbad.gif [R,L]

Initial URL

                                

Initial Description

                                

Initial Title
Disable hotlinking of images

Initial Tags
htaccess, security

Initial Language
Apache