Knowledge Base
MilesWeb / How-Tos

How to configure hotlink protection in cPanel

Approx. read time : 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.
Avatar
Pravin is Journalist Specializing in Blogging, Social Networking and Community Management. As a constant learner, he is always aiming towards new ideas and greater knowledge. When he is not doing research, reading, or writing for blogs, you can find him hanging around social media sites.