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.

How to use url redirect in hotlink protection?

Discussion in 'General Discussion' started by DeadManWalking, May 6, 2008.

  1. DeadManWalking

    DeadManWalking Active Member

    Joined:
    Dec 9, 2004
    Messages:
    42
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    Japan
    What it does actually?

    I have tried several things:
    - Put a direct URL to an image, eg. http://domain.tld/forbidden.gif
    - Put a URL to an HTML page
    - Put a URL to a PHP page

    None of them working(?), or at least nothing changes when I link the image from another domain. It just blocks the image. All of the above makes no difference from not entering a URL.

    Also as a side note, there is a little bug in Hotlink Protection form. When I submit changes, and return to Hotlink Protection page, cPanel adds [.* ] -without brackets- to the beginning of the Extensions to allow form field.
     
  2. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,279
    Likes Received:
    8
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    If you wish to be able to access the image/files by entering them into your browser directly, check the box "Allow direct requests (ie. entering the url to an image in your browser)"
     
  3. DeadManWalking

    DeadManWalking Active Member

    Joined:
    Dec 9, 2004
    Messages:
    42
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    Japan
    I see,
    Quite confusing wording and order in the page though.

    If you put the "Allow direct request" first, and than put the URL field saying: "Redirect user here when they make a direct request", it will make much more sense imho.

    You can even make URL field disabled if user allows the direct requests.

    Just my 2 cents ;)
     
  4. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,279
    Likes Received:
    8
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    You're always welcome to submit that as an official enhancement request to http://bugzilla.cpanel.net for consideration :).
     
  5. DeadManWalking

    DeadManWalking Active Member

    Joined:
    Dec 9, 2004
    Messages:
    42
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    Japan
Loading...

Share This Page