How To Set up Hotlink Protection in cPanel

  Shared hosting

Introduction

Hotlink Protection in cPanel helps prevent other websites from directly linking to files such as images, videos, or documents hosted on your server. This protects your bandwidth usage, improves website performance, and prevents unauthorized use of your content.

Prerequisites

Before enabling Hotlink Protection, make sure you have:

  1. Access to your cPanel account
  2. Permission to manage website security settings
  3. A hosted domain or website in your cPanel account
  4. The file types you want to protect (such as jpg, jpeg, png, gif, mp4, pdf)
  5. Optional redirect URL for unauthorized requests

Implementation

Follow the steps below to configure Hotlink Protection in cPanel:

Step : 1

Login to your cPanel.

Step : 2

Click hotlink protection under the security section.

Step : 3

  1. Select the URL.
  2. Enter the files type you want to protect.
  3. Choose allow direct request option.
  4. Edit redirect request URL.
  5. Finally click submit button.

Conclusion

You have successfully configured Hotlink Protection in cPanel. This feature helps secure your website content, reduce unnecessary bandwidth usage, and prevent external websites from using your hosted files without permission.

LEAVE A COMMENT