How to prevent hotlnik images from your site
Aug 28, 2010
Author: City Hall
This is an example of how to protect the site direct links to your images from another site. For example a web master can set the site with high traffic and loads directly from your server.
Can lead to high load on your server. The result is more costs and greater bandwidth occupation on your server.
It can be prevented with a little code. in htaccess
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://(www.)?mydomain.com/.*$ [NC]
RewriteRule .(gif|jpg)$ -- [F]
We mataching gif and jpg formats you can add or remove more. Accordingly mydomain.com is your domain
views 1728



