Page tree
Skip to end of metadata
Go to start of metadata

This document is for a previous release of cPanel & WHM. To view our latest documentation, visit our Home page.

For cPanel & WHM 11.44

(Home >> Security >> HotLink Protection)


A hotlink occurs when someone embeds content from your site in another site and uses your bandwidth to serve the files. You can use this interface to prevent this issue.


  • When you disable hotlinks, make certain that you allow hotlinks for any necessary domains (for example, your website's subdomains and the URL that you use to access your cPanel account).
  • If the URL that you use to access your cPanel account is excluded from the URLs to allow access list, you may not see embedded images in the HTML Editor in the File Manager interface (Home >> Files >> File Manager).

Enable hotlink protection

To enable hotlink protection, perform the following steps:

  1. Click Enable.
  2. To allow specific sites to hotlink to your site, add their URLs to the URLs to allow access list.
  3. To block direct access to files of specific types, add those file extensions to the Block direct access for these extensions list. 
    • For example, if you wish to block all .jpg images, add .jpg to the Block direct access for these extensions list.
    • When you block these file types, others will not be able to hotlink those types of files from your website, regardless of any other settings.
  4. Select Allow direct requests to allow visitor to access specific content through the URL. 
    • For example, if you enable this setting, a visitor could enter as a URL to access the example.jpg file.
  5. To redirect requests for certain content, enter the URL to which you want to redirect your visitor in the Redirect request to this URL text box.
  6. Click Submit.

Disable hotlink protection

To disable hotlink protection, click Disable.


When you click Disable, cPanel deletes the entries in the URLs to allow access list. Before you disable hotlink protection, we recommend that you save the list locally.