How to Hotlink protect my website?

Discussion in 'Setting-up protection' started by aydesign, Jul 11, 2013.

  1. aydesign

    aydesign New Member

    Joined:
    Jul 6, 2013
    Messages:
    10
    Hi,
    I used the Hotlink Protection link in my host's cPanel,
    http://i39.tinypic.com/30hym9y.jpg

    and it generated this .htaccess file:

    RewriteEngine on

    RewriteCond %{HTTP_REFERER} !^http://holliehatton.com/.*$ [NC]
    RewriteCond %{HTTP_REFERER} !^http://holliehatton.com$ [NC]
    RewriteCond %{HTTP_REFERER} !^http://holliehatton.com/.*$ [NC]
    RewriteCond %{HTTP_REFERER} !^http://holliehatton.com$ [NC]
    RewriteRule .*\.(jpg|jpeg|gif|png|bmp)$ - [F,NC]

    That doesn't seem to do anything though, if I take an image from my main page,
    http://holliehatton.com/images/comingsoon_02.gif
    and use it on a hotlink tester, like http://altlab.com/hotlinkchecker.php , the image still shows up.

    I used a different generator to create this .htaccess file, and placed it in my wordpress folder but with this, it seems to make it so that none of my images show up at all.

    RewriteEngine on

    RewriteRule .*\.(gif|jpg|jpeg|bmp|zip|rar|mp3|flv|swf|xml|php|png|css|pdf|mov|mp4|wmv)$ - [F,NC]

    RewriteCond %{HTTP_REFERER} !^http://holliehatton.com/.*$ [NC]
    RewriteCond %{HTTP_REFERER} !^http://holliehatton.com$ [NC]
    RewriteCond %{HTTP_REFERER} !^http://www.holliehatton.com/.*$ [NC]
    RewriteCond %{HTTP_REFERER} !^http://www.holliehatton.com$ [NC]
    RewriteRule .*\.(gif|jpg|jpeg|bmp|zip|rar|mp3|flv|swf|xml|php|png|css|pdf|mov|mp4|wmv)$ http://mywebsite.com [R,NC]
    # BEGIN WordPress

    # END WordPress

    This is all new to me, so I'm not sure what to do.
    Any help would be appreciated.
  2. gswaim

    gswaim CGI-Central Partner

    Joined:
    Jul 2, 2003
    Messages:
    641
    I am not sure what you are trying to acomplish but if you want to protecft the entire blog do this:

    1. Do a fresh install of WordPress
    2. Integrate aMember
    3. Set "Protect entire blog" in the aMember WordPress plugin
    4. You are done.

    If you just want to protect just media on the site you can put the media inside a protected folder that you create with aMember or even store the files on Amazon S3 and use aMember to retrieve them.
  3. aydesign

    aydesign New Member

    Joined:
    Jul 6, 2013
    Messages:
    10
    I'd just like to protect the images in the Wordpress Media Library, if possible.
    Otherwise, I'm not sure how to create image galleries with amember protected links.
    I can't seem to find any information or tutorials on how other people are creating protected image galleries in Wordpress.

    So what I thought was, I'd protect the posts themselves with amember, but prevent people from hotlinking to the media library images.
    I can create new folders within wp-content/uploads/ but I'm not sure how to protect the images within those folders with amember.

Share This Page