how do people get "oops, do not hotlink" images?

Discussion in 'Site & Server Administration' started by abcdefGARY, Aug 3, 2006.

  1. #1
    hello, I've seen on some major image hosting comapnies (photobucket, imageshack) and whenever I hotlink something, they will display a image that says: oops do not hotlink or whatever instead of the original image.

    is this do-able?

    thanks in advance
     
    abcdefGARY, Aug 3, 2006 IP
  2. kk5st

    kk5st Prominent Member

    Messages:
    3,497
    Likes Received:
    376
    Best Answers:
    29
    Trophy Points:
    335
    #2
    Is what do-able? Hotlinking in spite of authorization settings or the authorization settings themselves? No, you shouldn't be able to get around a closed directory, and this is how authorization works.

    cheers,

    gary
     
    kk5st, Aug 3, 2006 IP
  3. stickman373

    stickman373 Peon

    Messages:
    331
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #3
    stickman373, Aug 3, 2006 IP
    ramakrishna p likes this.
  4. rosytoes

    rosytoes Peon

    Messages:
    230
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #4
    To display a warning image when other people hotlinking images on your site, you need to put this in your .htaccess
    RewriteCond %{HTTP_REFERER} !^http://www.yourdomain.com/.*$      [NC]
    RewriteCond %{HTTP_REFERER} !^http://www.yourdomain.com$      [NC]
    RewriteRule .*\.(jpg|jpeg|gif|png|bmp)$ http://www.yourdomain.com/image-not-available.gie [R,NC]
    
    Code (markup):
    Make whatever you want to display and name it image-not-available.gie
     
    rosytoes, Aug 3, 2006 IP
  5. abcdefGARY

    abcdefGARY Well-Known Member

    Messages:
    665
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    110
    #5
    thanks. ill try some of these tonight.
     
    abcdefGARY, Aug 3, 2006 IP
  6. shashe

    shashe Peon

    Messages:
    73
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Thanks for the code. I'll give this a try to see if it works with FrontPage.
     
    shashe, Aug 3, 2006 IP
  7. Greenthorn

    Greenthorn Guest

    Messages:
    59
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #7
    I will give this a try also. I have a few people using one of my images in their myspace profiles.
     
    Greenthorn, Aug 5, 2006 IP
  8. shashe

    shashe Peon

    Messages:
    73
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #8

    MySpace is my problem also.
     
    shashe, Aug 5, 2006 IP
  9. ramakrishna p

    ramakrishna p Notable Member

    Messages:
    1,798
    Likes Received:
    361
    Best Answers:
    0
    Trophy Points:
    240
    #9
    That is really a good article about hotlinking side effects and for bandwidth stealing. Descriptive article on the subject. Can I share someone's bandwidth unlawfully?:D . Thanks for sharing the link.
     
    ramakrishna p, Aug 5, 2006 IP
  10. Greenthorn

    Greenthorn Guest

    Messages:
    59
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #10
    What I ended up doing, was using the same image in my store, but with a different name, then I took the image they were hotlinking to, and tastefully put text on the image that read "Visit www.mydomain.com." Traffic was up slightly for a week before they changed their images. I just checked and one person is still using my image tiled as his background! Love the free advertising!
     
    Greenthorn, Aug 6, 2006 IP
  11. shashe

    shashe Peon

    Messages:
    73
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #11

    This is an incredibly great idea. I've been wrestling with this problem at MySpace for months. Sending an email was unproductive. Thanks!
     
    shashe, Aug 6, 2006 IP
  12. shashe

    shashe Peon

    Messages:
    73
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #12
    By the way, Greenthorn, I love your avatar. Is that a sketch of you? If not, of whom? Did you sketch it?
     
    shashe, Aug 6, 2006 IP
  13. ramakrishna p

    ramakrishna p Notable Member

    Messages:
    1,798
    Likes Received:
    361
    Best Answers:
    0
    Trophy Points:
    240
    #13
    Yes, I was thinking to ask Greenthorn about his avatar. Nice line drawing caricature of different look. Caricatures with few lines really stand out well.
     
    ramakrishna p, Aug 6, 2006 IP
  14. Greenthorn

    Greenthorn Guest

    Messages:
    59
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #14
    Thanks. I get comments on it all the time. It's a caricature that resembles me. I actually made it part of my logo for my sign business, so it's on the sides of my work van.
     

    Attached Files:

    Greenthorn, Aug 6, 2006 IP
  15. ramakrishna p

    ramakrishna p Notable Member

    Messages:
    1,798
    Likes Received:
    361
    Best Answers:
    0
    Trophy Points:
    240
    #15
    Nice work van with your caricature drawn. First time Iam seeing this kind of work van. We do not have such nice Work Vans In india. You are professional.
     
    ramakrishna p, Aug 6, 2006 IP
  16. abcdefGARY

    abcdefGARY Well-Known Member

    Messages:
    665
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    110
    #16
    hmm I can't get it to work...

    I put this:

    RewriteCond %{HTTP_REFERER} !^http://www.yourdomain.com/.*$ [NC]
    RewriteCond %{HTTP_REFERER} !^http://www.yourdomain.com$ [NC]
    RewriteRule .*\.(jpg|jpeg|gif|png|bmp)$ http://www.yourdomain.com/image-not-available.gie [R,NC]

    in my .htaccess (which I made). is this because i changed .gie to .png

    any ideas?
     
    abcdefGARY, Aug 7, 2006 IP
  17. rosytoes

    rosytoes Peon

    Messages:
    230
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #17
    if you look at the last line, it means all those extensions are banned.
     
    rosytoes, Aug 8, 2006 IP
  18. abcdefGARY

    abcdefGARY Well-Known Member

    Messages:
    665
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    110
    #18
    oh, so I should remove the file extensions?
     
    abcdefGARY, Aug 8, 2006 IP
  19. Nafai

    Nafai Peon

    Messages:
    105
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #19
    You did change yourdomain.com to your actual domain right? hehehe
     
    Nafai, Aug 8, 2006 IP
  20. abcdefGARY

    abcdefGARY Well-Known Member

    Messages:
    665
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    110
    #20
    yes. *glares* im noob but not that noob:rolleyes:
     
    abcdefGARY, Aug 8, 2006 IP