Hotlink protection helps stop other websites from embedding files served from your hosting account. In cPanel, you can choose allowed referring websites and the file extensions to protect.
Configure hotlink protection
- Open cPanel > Security > Hotlink Protection.
- Record the current settings, then click Enable if protection is not already enabled.
- Add every required website URL to the allowed list, including your own domain variants and relevant subdomains.
- Enter the file extensions you want to protect. Avoid blocking formats used by required external integrations.
- Choose whether to Allow direct requests, which permits access without a referring page, such as opening a file URL directly.
- Set an optional redirect destination for blocked requests, then click Submit.
- Test your own pages and any approved external use of the files.
This relies on request information such as the referrer; it is not authentication and does not prevent all copying. Save the allowed list before disabling protection, because cPanel may remove those entries.