Hello
@xata11,
It's important to first note that cPanel & WHM is not designed to function normally when your license is expired or inactive. Several services and features rely on a valid license to work. I recommend reaching out to our Customer Service department (
[email protected]) if you have questions or feedback about your license.
With a valid cPanel license, you can use the following UAPI command to disable HotLink Protection via the command line:
Code:
uapi --user=username Mime delete_hotlink
You can read more about this UAPI function at:
UAPI Functions - Mime::delete_hotlink - Developer Documentation - cPanel Documentation
Or, you could manually remove the Mod_Rewrite entries utilized for
HotLink Protection from the .htaccess file in the document root of the protected directory. Here's an example of what these entries look like:
Code:
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^https://testcptest01.tld/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^https://testcptest01.tld$ [NC]
RewriteCond %{HTTP_REFERER} !^https://www.testcptest01.tld/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^https://www.testcptest01.tld$ [NC]
RewriteRule .*\.(jpg|jpeg|gif|png|bmp)$ - [F,NC]
Thank you.