• 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!

Viewing 12 replies - 1 through 12 (of 12 total)
  • 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.

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

    Thread Starter knotty

    (@knotty)

    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.

    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. 🙂

    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.

    Thread Starter knotty

    (@knotty)

    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!

    Thread Starter knotty

    (@knotty)

    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!

    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.

    Thread Starter knotty

    (@knotty)

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

    Thanks!

    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?

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

    I have a link to a really good htaccess creating hotlink protect wizard website — but it’s at home.. Will post it later 🙂

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Hotlink protection or htaccess?’ is closed to new replies.