| Current Path : /home/jeromecohp/www/aesecure/premium/setup/snippets/ |
| Current File : /home/jeromecohp/www/aesecure/premium/setup/snippets/89-optimize_hotlinking.htaccess |
#aeSecure 8.9
<IfModule mod_rewrite.c>
# Prevent hotlinking (http://www.htaccesstools.com/hotlink-protection/)
RewriteEngine On
RewriteCond %{REMOTE_ADDR} !127.0.0.1
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?127.0.0.1 [NC]
RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?%AESECURE_SERVERNAME% [NC]
RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?%AESECURE_USERIP% [NC]
RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?%{HTTP_HOST} [NC]
RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?google.com [NC]
RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?google.be [NC]
RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?google.fr [NC]
RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?bing.com [NC]
RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?facebook.com [NC]
RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?yahoo.com [NC]
RewriteRule \.(jpg|jpeg|png|gif|webp)$ - [NC,F,L]
</IfModule>