Hi, i want to block image hotlinking from my website.
I found instructions on how to do it and i edited the .htaccess file but it's not working. Here is what i added:
I tried to open a support ticket to KnownSRV but all i got was:
So, i'll need your help here xD
I found instructions on how to do it and i edited the .htaccess file but it's not working. Here is what i added:
Code:
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?mywebsite.com [NC]
RewriteRule \.(jpg|jpeg|png|gif)$ http://external_image_to_show_instead [NC,R,L]
I tried to open a support ticket to KnownSRV but all i got was:
:facepalm:Code looks ok. However, I'm not sure why it doesn't work for you.
So, i'll need your help here xD