Hello guys
I used following codes to block images of my websites on hotlinks sites, I put them on .htaccess file, But they don't work ( I cleared browser cache as well, Even tested them in Remote desktop VPS)
Does anyone have any idea?
Code:
RewriteEngine On
RewriteCond %{HTTP_REFERER} !^http://(.+\.)?mywebsite\.com/ [NC]
RewriteCond %{HTTP_REFERER} !^$
RewriteRule .*\.(jpe?g|gif|bmp|png)$ https://i.imgur.com/ZtXiCBw.gif [L]
Code:
RewriteEngine On
RewriteCond %{HTTP_REFERER} !^http://(.+\.)?mywebsite\.com/ [NC]
RewriteCond %{HTTP_REFERER} !^$
RewriteRule .*\.(jpe?g|gif|bmp|png)$ - [F]
Code:
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^http://(www\.)?website.com [NC]
RewriteCond %{HTTP_REFERER} !^http://(www\.)?website.com.*$ [NC]
RewriteRule \.(gif|jpg)$ - [F]