The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

hotlink protection and passing filename?

Discussion in 'General Discussion' started by Cakkie, Jun 15, 2004.

  1. Cakkie

    Cakkie Registered

    Joined:
    Jun 15, 2004
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    Hi, I'm a php developer and I have a site with quite some media on it, that suffers a lot from hotlinking. Now I'm thinking of enabling hotlink protection, but I would like to redirect to a php page. In that page I would like to get hold of the filename that the person was trying to get, so that I can show a page displaying a link to the files (so they are actually aware that they are on my site).

    Say they try to get /somepic.jpg, I would like cpanel to redirect the user to /getfile.php?file=somepic.jpg or something like that.

    Is that possible?
     
Loading...

Share This Page