View Single Post
Old 05-08-2019, 09:30 AM  
pornuploader
Confirmed User
 
pornuploader's Avatar
 
Industry Role:
Join Date: Jan 2015
Posts: 472
Problem with hotlinking websites

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]
pornuploader is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote