Knowledge Base Hub

Browse through our helpful how-to guides to get the fastest solutions to your technical issues.

Home  >  How-Tos  >  How to configure hotlink protection in cPanel
Top Scroll

How to configure hotlink protection in cPanel

 2 min

This tutorial describes how to configure hotlink protection in cPanel. Enabling hotlink protection can help prevent other websites from using the bandwidth of your website.

About Hotlinking

Hotlinking, also known as linking online or direct linking is when another website link direct to files that are hosted on your website. For example, the web page of another site may contain direct links to image files that are stored on your website. As a result, when visitors go to another website and your site hosting the image files, the bandwidth is effectively “stolen”.

To avoid this situation, you can configure hotlink protection in cPanel.

Enabling Hotlink protection

To enable Hotlink Protection, follow these steps:

  1. In the Security section of the main screen of cPanel, click Hotlink protection.
  2. Click Enable.
  3. In the directions to allow access to URL text box, type the URLs of websites that can access your files.
  4. In the short block, type the file extensions for which you want to block the access.
  5. In the redirect text box, you can optionally type a URL. The blocked sites users will see the redirected page instead of hotlinked file.
  6. Click Submit.
Disabling Hotlink protection

When another website links no longer directly to your files (or if you do not mind others using your files websites), you can disable hotlink protection.

To disable hotlink protection, follow these steps:

  1. In the Security section of the main screen of cPanel, click Hotlink Protection.
  2. Click Disable.
For our Knowledge Base visitors only
Get 10% OFF on Hosting
Special Offer!
30
MINS
59
SECS
Claim the discount before it’s too late. Use the coupon code:
STORYSAVER
Note: Copy the coupon code and apply it on checkout.