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, head to Security < Hotlink Protection.

cPanel

Click the Enable button to start protecting your bandwidth.

Hotlink protection

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.

Configure hotlink protection

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. Finally, enter a URL if you wish to redirect hotlink requests.

If you notice any problems or if you need any help, please open a new support ticket from your HostPapa Dashboard. More details on how to open a support ticket can be found here.

 

Was this article helpful?

Related Articles

Leave A Comment?