proxy hotlink programming

Discussion in 'Programming' started by mypoint, Oct 18, 2008.

  1. #1
    Hi does anyone know how to code something so that if someone hotlinks a photo or anything from my proxy that it will be clickable to where ever it is posted at? and when that user clicks the hotlinked image or w/e it is, it will send them to my home page?

    let me know thanks! and hopefully the above makes sense.
     
    mypoint, Oct 18, 2008 IP
  2. jmatthew3

    jmatthew3 Peon

    Messages:
    29
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #2
    if they're hotlinking your image, there's not really much you can do. You can't put any html code on their site.

    You can create image hotlink protection scripts, if you really care all that much. You could do that by having your html code output a time sensitive key that a browser will pass back into an image display script.

    e.g., output: <img src="image.php?key=xxx"/>

    you then could make image.php check to see if KEY matches the correct value and output either the correct image or send a 404 or whatever else you get creative with.
     
    jmatthew3, Oct 18, 2008 IP
  3. mypoint

    mypoint Well-Known Member

    Messages:
    985
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    110
    #3
    so what do you mean by that? like if someone takes and hotlinks a picture using my proxy on another site it will turn that picture into something else? and will i be able to send those users back to my site or no?

    so overall there is no way that a hot linked picture using my site will make it clicable so users will land back to my homepage?

    thanks a lot!
     
    mypoint, Oct 18, 2008 IP