(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 List the URLs to which you wish 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:
- Click Enable.
- To allow specific sites to hotlink to your site, add their URLs to the List the URLs to which you wish to allow access list.
- To block direct access to files of specific types, add those file extensions to the Block direct access for the following extensions list.
- For example, if you wish to block all
.jpg images, add
.jpg to the Block direct access for the following 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.
- 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
www.example.com/folder/example.jpg as a URL to access the
- To redirect requests for certain content, enter the URL to which you want to redirect your visitor in the Redirect the request to the following URL text box.
- Click Submit.
Disable hotlink protection
To disable hotlink protection, click Disable.
When you click Disable, cPanel deletes the entries in the List the URLs to which you wish to allow access list. Before you disable hotlink protection, we recommend that you save the list locally.