Denying hot linking
-
Good day,
I’ve been trying to get my wordpress websites secure from hot linking ( there are some picture with copyright’s etc ). The basis .htacces dint work for me.
I’ve tried the following:
deny from all
This did stop the hot linking from happening, only downside was that my website couldn’t reach the images annymore aswell.RewriteEngine On RewriteCond %{HTTP_REFERER} !^https://(www\.)?yourwebsite\.com/ [NC] RewriteCond %{REQUEST_URI} !hotlink\.(gif|png|jpg|doc|xls|pdf|html|htm|xlsx|docx|mp4|mov) [NC] RewriteCond %{HTTP_COOKIE} !^.*wordpress_logged_in.*$ [NC] RewriteRule .*\.(gif|png|jpg|doc|xls|pdf|html|htm|xlsx|docx|mp4|mov)$ https://yourwebsite.com/ [NC]
This ( although promising ) didn’t do anything. The hot linking was still able so it didn’t really mattered. I’ve read that having a multisite could be the cause of this.
I’m still searching for a solution for this problem. If someone could help me or at least give me pointers that would be greatly appreciated.
Some additional information:
Im using the NextGen Gallery to organise and display my images.
I am currently using Better WP Security for some additional security.King regard,
Floyd
- The topic ‘Denying hot linking’ is closed to new replies.