WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Denying hot linking (3 posts)

  1. UxFloyd
    Member
    Posted 10 months ago #

    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)$ http://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

  2. UxFloyd
    Member
    Posted 10 months ago #

    Hey,

    I've read through the article and used some of the mayor points. Still have some issues on the multisite but in general the images are secure atm. Tnx for the link ^^

Reply

You must log in to post.

About this Topic

Tags

No tags yet.