Technical information

Restriction of files loading from external websites

In some cases, owners of other websites can use images from your website by copying direct link to images on their websites. But when a visitor sees your images on these websites, he uses resources and traffic of your hosting.

RewriteEngine On
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://(www.)? [nc]
RewriteRule .*.(gif|jpg|png)$[nc]

Note! Instead of write your domain name and create close.gif image. This image will shown instead of the pasted one.