Check if image referer is my site, if not redirect it to another page

Discussion in 'Programming' started by mines, Jun 21, 2007.

  1. #1
    hi,
    i have a certain image that gets tonnes of hits, however most are viewed straight as the image (ie not embedded in any page). how can i (with htaccess) check if its referer is from mysite.com, and if it isn't redirect it to mysite.com/viewtheimage.html?

    thanks
     
    mines, Jun 21, 2007 IP
  2. PDoc

    PDoc Peon

    Messages:
    47
    Likes Received:
    40
    Best Answers:
    0
    Trophy Points:
    0
    #2
    This might help you: http://altlab.com/htaccess_tutorial.html (Sorry can't post clickable urls yet)
     
    PDoc, Jun 21, 2007 IP