Knowledgebase
Hotlink Protection Print this Article
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.
- 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
- Select Allow direct requests to allow visitor to access specific content through the URL. For example, to access
example.jpg
, a visitor can enterwww.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.
Was this answer helpful?
Also Read
How to Password Protect Directories
Password protection of a directory requires visitors to enter a username and a password, which...
Password protection of a directory requires visitors to enter a username and a password, which...
IP Deny Manager
The IP Deny Manager feature allows you to block access to your site for one or more IP addresses....
The IP Deny Manager feature allows you to block access to your site for one or more IP addresses....
Leech Protection
Leeching occurs when users publicly post their username and password to a restricted area of your...
Leeching occurs when users publicly post their username and password to a restricted area of your...