Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

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:
    151
    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

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice