Skip to main content

How to Configure Hotlink Protection in cPanel

You can enable Hotlink Protection in cPanel to prevent other websites from displaying your images or media using your direct URLs. This feature is available on specific Hostek plans and is managed through the Hotlink Protection tool.

Important: This feature is only available on Hostek plans that include Hotlink Protection.

Before you begin

You will need:

  • A cPanel account

  • Access to the Hotlink Protection tool within your cPanel dashboard

Configure Hotlink Protection

  1. Log in to your cPanel account.

  2. Locate the Security section and select Hotlink Protection.

  3. Select the Enable radio button or checkbox to activate the feature.

  4. Enter the domains you wish to allow to link to your content in the Allowed Domains field.

  5. Select Enable to activate the protection.

Confirm the result

  • The status of the Hotlink Protection tool will display as Enabled.

  • When an unauthorised domain attempts to load your images or media, the request will be blocked or redirected, and the content will not appear on their site.

Limitations

Hotlink Protection works by checking the "Referer" header of a request. If a visitor clicks a link to your image from an external site or if the browser does not send a Referer header, the protection may not trigger as expected. This feature does not prevent a user from downloading your images directly; it only prevents other websites from "hotlinking" them.

Did this answer your question?