Description
This function lists redirects from the cPanel account's .htaccess
files.
Warning:
We strongly recommend that you use the following UAPI function instead of this function:
-
Mime::list_hotlinks
— 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 |
extensions |
string |
The file extensions with hotlink protection. |
File extensions in a comma-separated list. |
jpg,jpeg,gif,png,bmp |
allow_null |
Boolean |
Whether hotlink protection allows direct requests. |
|
1 |
redirect_null |
string |
The destination URL. |
A valid URL, or null. |
null |
urls |
string |
A list of URLs with hotlink protection. |
A list of valid URLs. |
http://www.example.com |
state |
string |
Whether hotlink protection is enabled. |
|
enabled |
reason |
string |
A reason for failure. Note: This function only returns a reason value if it failed. |
A string that describes the error. |
This is an error message. |
result |
Boolean |
Whether the function succeeded. |
|
1 |