How to set up Hotlink protection in cPanel

Hotlink protection is a security feature in cPanel designed to reduce bandwidth consumption. It works by preventing third-party websites from directly linking to your content (for example, pulling in images hosted on your server for display on their own web pages).

You can whitelist specific URLs for permitted access to files, nominate specific file types to protect or redirect requests to a specific URL of your choosing.

To set up Hotlink protection in cPanel,

  1. Go to Security < Hotlink Protection.
  2. Click the Enable button to start protecting your bandwidth.
  3. Now review the list of permitted URLs lower down the page. By default, this list will include any subdomains you have configured. Add or remove URLs as required.
  4. Now review the list of blocked file types. By default, most popular image types are blocked, but you can add any file extension here to protect your media.
    • If you wish to allow direct requests (via a specific URL), ensure the relevant box is checked.
  5. Finally, enter a URL if you wish to redirect hotlink requests.


If you still need help setting up hotlink protection in cPanel, contact us by opening a support ticket or use our live chat feature to consult with our support team.

  • Nuagerie, cPanel, Aide
  • 1 Users Found This Useful
Was this answer helpful?

Related Articles

 How to empty my DNS cache

Overview Your DNS cache stores the locations (IP addresses) of web servers that contain web...

 What is cPanel?

cPanel is a control panel with which you can manage almost any element of your cPanel hosting...

 How cPanel & WHM Improved Email Hosting

cPanel and WHM have gone through some serious upgrades to their Email Hosting features...

 CURL: could not resolve host: cpanel.net

Error: curl: (6) Could not resolve host: securedownloads.cpanel.net; Unknown error Fix:...

 How can I activate my paid license after a trial?

You can do this by running this command in SSH: /usr/local/cpanel/cpkeyclt It should...