How to use url redirect in hotlink protection?

DeadManWalking

Well-Known Member
Dec 9, 2004
49
2
158
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.
 

cPanelDavidG

Technical Product Specialist
Nov 29, 2006
11,212
13
313
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)"
 

DeadManWalking

Well-Known Member
Dec 9, 2004
49
2
158
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 ;)
 

cPanelDavidG

Technical Product Specialist
Nov 29, 2006
11,212
13
313
Houston, TX
cPanel Access Level
Root Administrator
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 ;)
You're always welcome to submit that as an official enhancement request to http://bugzilla.cpanel.net for consideration :).