How to Enable Hotlink Protection in cPanel

Estimated reading: 2 minutes 50 views

Hotlink protection prevents other websites from directly linking to files and pictures on your website. Other sites will only link to file types that you don’t specify.

Sample scenario of hotlinking: Say I like the image on your website, and I want that image on my site. If I use the full URL of your image on my site, the image is downloading from your site every time someone looks at mine. This means I am using your bandwidth for the image. When you enable Hotlink Protection, I cannot steal your bandwidth anymore.

How to configure Hotlink Protection

To enable Hotlink Protection:

  1. Log in to cPanel.
  2. Look for the Security section, then click Hotlink Protection
    .How to Enable Leech Protection in cPanel
  3. Make sure the domain name you wish to protect is in the box called URLs to allow access
    .How to Enable Leech Protection in cPanel
  4. If you’re satisfied with the URLs and current settings, click the Enable button
    .Hotlink Enabled
    If you want to further configure the settings, proceed to Step 5 (without clicking the Enable button yet).
  5. Provide the extensions you would like to block in the Block direct access for the following extensions (comma-separated)
    .cPanel - Block Direct Access for Hotlinking
  6. Leave the Redirect the request to this URL box blank unless you want outside users to be redirected to another page. If yes, input the destination URL.
  7. Hit Submit.
    A successful confirmation page will appear
    .How to Enable Leech Protection in cPanel
  8. Click Go Back.

To disable Hotlink Protection:

  1. On the Hotlink Protection page, click Disable. How to Enable Leech Protection in cPanel
  2. A confirmation page will be displayed
    .How to Enable Leech Protection in cPanel

You have now protected your images from being hot-linked. Just be sure that all of your additional domains are on the Hotlink list.

Share this Doc

How to Enable Hotlink Protection in cPanel

Or copy link

CONTENTS