Hotlinking Protection

ok, so I have some working codes

RewriteEngine on
RewriteCond %{HTTP_REFERER} !^http://site.com/.*$      [NC]
RewriteCond %{HTTP_REFERER} !^http://site.com$      [NC]
RewriteCond %{HTTP_REFERER} !^http://www.site.com/.*$      [NC]
RewriteCond %{HTTP_REFERER} !^http://www.site.com$      [NC]
RewriteRule .*\.(jpg|jpeg|gif|png|bmp|mp3|wav)$ - [F,NC]

this would prevent hotlinking from your hmm site, but when I looked at my so-called gallery, which displays jpg, it disappeared. Is it possible to use images when using hotlink protection? I was interested to know

+3
source share
1 answer

You can use this tool http://www.htaccesstools.com/hotlink-protection/

.htaccess . Hotlink , . , .htaccess hotlink, , " ".

+4

Source: https://habr.com/ru/post/1766609/


All Articles