Knowledge Base

How to Enable Hotlink Protection in cPanel

  1. Log in to your cPanel account.

  2. In the Security section, click Hotlink Protection.

  3. Click the Enable button to turn Hotlink Protection on.

  4. In the field URLs to allow access, enter the domains that should be allowed to link to your files (for example: yourdomain.com, www.yourdomain.com).

  5. In the field Block direct access for the following extensions, list the file extensions you want to protect (e.g., .jpg, .png, .gif, .pdf).

  6. (Optional) Check the box Allow direct requests if you want users typing the file URL in their browser to still access it.

  7. (Optional) In Redirect request to the following URL, you can enter a URL where visitors will be sent if they try to hotlink your files.

  8. Click Submit (or Save) to apply your settings.


How to Disable Hotlink Protection in cPanel

  1. Log into your cPanel account.

  2. Navigate to Security → Hotlink Protection.

  3. Click the Disable button.

Please rate this article to help us improve our Knowledge Base.

0 0