Hotlink Protection helps prevent other websites embedding files hosted on your account and using your bandwidth. Configure the sites allowed to use the files, then check that images still work on your own website.

Enable and configure protection

  1. In cPanel, open Security > Hotlink Protection.
  2. Click Enable, then Go Back to review the settings.
  3. Under URLs to allow access, include your site’s required domain names and subdomains, plus any other sites that should be allowed.
  4. Set the file extensions to protect, using the format requested by the interface.
  5. Choose whether to Allow direct requests, such as opening an image URL directly.
  6. If needed, enter a redirect URL for blocked requests.
  7. Click Submit and test files from your website and an external page.

Submit

Hotlink Protection is not a substitute for restricting access to private files. Referrer information may be absent or changed by browsers, so test the behaviour you need. Use Disable in the same interface if the settings interfere with legitimate access.