Image Host Trickery Possible? :)

Discussion in 'HTML & Website Design' started by Nudge, Aug 19, 2009.

  1. #1
    Hi there.

    Let me briefly explain the situation before I ask the question.

    I run a small image host. I have a good amount of people using my services for legitimate purposes. However, I have a few people who themselves own web sites, and use my image host to host images on their website.

    Now I have emailed some of these website owners who use a good amount of my resources. I asked them to either take down the images, or maybe a deal can be reached where they can place a link to my site in exchange for the hosting.

    None of them have emailed me back, so instead of merely deleting the image, I decided to replace the image with my website logo.

    Now my HTML question is, is it possible to actually place a link to my site whenever an image is called on from theirs?

    In other words, if a website calls on hostedimage.jpg from my server, could I have that file actually be an html file or something and bring up a link?

    I'm pretty sure this is not possible, and downright silly. But it could be a great trick if it did work.

    Thanks,
    Nudge
     
    Nudge, Aug 19, 2009 IP
  2. rufh_s

    rufh_s Active Member

    Messages:
    718
    Likes Received:
    32
    Best Answers:
    0
    Trophy Points:
    70
    #2
    i guess you probably need to Google what hotlinking is? it pretty much does the same thing if your script allows hotlinking then you can simply select sites where it ll show your logo

    hope you get it :rolleyes:
     
    rufh_s, Aug 21, 2009 IP
  3. DirectSpace.net

    DirectSpace.net Peon

    Messages:
    30
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Hey there,

    If you're using apache on linux you can use .htaccess to detect who the referrer for the image is and then either:

    - block it
    - replace the image with another one (be nice, don't goatcx 'em ;))

    http://altlab.com/htaccess_tutorial.html

    Has a decent tutorial that you can check out. Since it seems you only have a few you're wanting to stop it shouldn't be hard to just add the checks by hand.

    Best of luck!
     
    DirectSpace.net, Aug 21, 2009 IP