Configuring .htaccess FaQ - Anti-Hot Link
Isn't it annoying that people keep on leeching your site of its images and also taking them and killing your bandwidth?
Insert the code below in your .htaccess file and remove all those unwanted hotlinking that is making your abndwidth bills skyrocket.
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://(www\.)?mydomain.com/.*$ [NC]
RewriteRule \.(gif|jpg)$ http://www.mydomain.com/nasty.gif [R,L]
Back to FaQ Section
|
|