Support » Networking WordPress » Denying hot linking

  • Resolved UxFloyd


    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} !^http://(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)$ [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,


Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Denying hot linking’ is closed to new replies.