Description
This function lists domains with hotlink protection.
Examples
Note:
Use cPanel's API Shell interface (Home >> Advanced >> API Shell) to directly test cPanel API calls.
Parameters
This function does not accept parameters.
Returns
Return |
Type |
Description |
Possible values |
Example |
urls |
string |
A list of the domains with hotlink protection. |
An array of one or more valid URLs.
|
http://example.com/ |
extensions |
string |
File types to hotlink protect. |
A comma-separated list of valid file extensions. |
jpg,jpeg,gif,png,bmp |
allow_null |
Boolean |
Whether the domain allows hotlinks from an empty or null referral URL. |
|
1 |
redirect_url |
string |
The URL to which to send hotlinkers. |
A valid URL. |
http://redirect.example.com/ |
state |
string |
Whether hotlink protection is enabled. |
|
disabled |