A hotlink occurs when content from your site is embedded on another site and uses your bandwidth to serve the files. cPanel allows you to prevent hotlinks to your site with the HotLinks Protection feature.
Enable hotlink protection
To enable hotlink protection, perform the following steps:
- Click the Enable on the HotLink Protection interface.
- To allow sites to hotlink to your site, add the URL to the URLs to allow access list.
- You can add certain file extensions to the Block direct access for these extensions list to block direct access to files saved in the specified formats. For example, if you wish to block all
.jpg images, add
.jpg to the Block direct access for these extensions list.
- When these file types are blocked, people will not be able to hotlink those types of files from your website, even if hotlink protection is enabled.
- Select Allow direct requests to allow visitor to access specific content through the URL. For example, to access
example.jpg, a visitor can enter
www.example.com/folder/example.jpg as a URL.
- To redirect requests for certain content, enter the URL to which you want to redirect your visitor to in the Redirect request to this URL text box.
- Click Submit.
Disable hotlink protection
To disable hotlink protection, click Disable on the HotLink Protection interface.