WordPress.org

Ready to get started?Download WordPress

Forums

Hotlink protection or htaccess? (13 posts)

  1. knotty
    Member
    Posted 9 years ago #

    Just wondering what the difference is between the cpanel functions for protecting images.

    1. Hotlink protection feature.
    2. Using htaccess for preventing image linking.

    Thanks!

  2. Mark (podz)
    Support Maven
    Posted 9 years ago #

    Probably very little indeed - I'd email your hosts as they should be able to define the specifics and they may differ from what others of us here have.

  3. Etanisla
    Member
    Posted 9 years ago #

    The cpanel function is the easy way to enter the proper code into .htaccess to prevent image linking.

  4. knotty
    Member
    Posted 9 years ago #

    Ok, thanks podz and Etanisla. I'll try using the htaccess file since I need to get familair with using that file, especially in light of that bandwidth stealing bot.

  5. trendsurfer
    Member
    Posted 9 years ago #

    I pretty sure if you use the hotlink protection feature in the Cpanel it will edit your .htaccess file. As a matter of fact, I once lost my .htaccess file by enabling Hotlink protection through the Cpanel because it overwrote the file rather than appended it. Backup before you try. :-)

  6. Etanisla
    Member
    Posted 9 years ago #

    Use the cpanel method first. Then you can look into your .htaccess file to see how the format is supposed to be.

    A lot of the cpanel methods are editing the .htaccess file. The drawback is they are plain entries. The plus is you can see how Things Are Supposed To Be(tm), and you can customize the file by hand afterwards.

  7. knotty
    Member
    Posted 9 years ago #

    Good point Etanisla, I was going to ask if the order or spacing makes a difference in the htaccess file. I'll do the hotlink feature and see how it does it.

    Thanks!

  8. knotty
    Member
    Posted 9 years ago #

    Ok, cpanel hotlink protection working. One question, when enabling the feature, it has "redirect hotlink attempts to:" text box.

    What is supposed to go here?

    Thanks!

  9. NuclearMoose
    Member
    Posted 9 years ago #

    You could redirect to a URI that is an image that has "Stolen from yoursite.com" or some other thing in it so that the site that is stealing your graphic gets this instead of the image they linked.

  10. knotty
    Member
    Posted 9 years ago #

    lol, NuclearMoose, that's good! and I'll do it.

    Thanks!

  11. courtneyelizabeth
    Member
    Posted 8 years ago #

    I have a question about this because...

    I've set it up....and everything SEEMS okay...

    i put the redirect to:
    http://www.courtneyelizabeth.com/nohotlinking.gif

    HOWEVER, the images that are being hotlinked, just show a redx now....they dont show the image that I redirected to...

    should i be redirecting to an html page that has the image on it? or is redirecting to another image the correct thing?

    it shows up like this

    RewriteEngine on
    RewriteCond %{HTTP_REFERER} !^http://courtneyelizabeth.com/.*$ [NC]
    RewriteCond %{HTTP_REFERER} !^http://courtneyelizabeth.com$ [NC]
    RewriteCond %{HTTP_REFERER} !^http://www.courtneyelizabeth.com/.*$ [NC]
    RewriteCond %{HTTP_REFERER} !^http://www.courtneyelizabeth.com$ [NC]
    RewriteRule .*\.(jpg|jpeg|gif|png|bmp)$ http://www.courtneyelizabeth.com/nohotlinking.gif [R,NC]

    Is this wrong?

  12. courtneyelizabeth
    Member
    Posted 8 years ago #

    uh k...i'm slow.....figured it out...lol had to put the image i wanted to link to on another website.

  13. Joebar
    Member
    Posted 8 years ago #

    I have a link to a really good htaccess creating hotlink protect wizard website -- but it's at home.. Will post it later :)

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags