Hotlink Protection

This document contains information on using cPanel's Hotlink Protection, which prevents other sites from displaying your images and files using your service's bandwidth.

A hotlink occurs when another site displays an image, video, or other file hosted on your service by linking to it directly. The file is displayed on that site, but the monthly bandwidth consumed is yours. Hotlink Protection blocks those links and only allows the addresses you authorize.

Access: log in to cPanel from the client portal → Log in to cPanel, or at https://yourdomain.com/cpanel. Then open Security → Hotlink Protection.

Enable and configure protection

  1. Click Enable. The list of allowed addresses and protected extensions is displayed. Click Go Back.
  2. Under URLs to allow access, review that all your site's addresses are present, one per line, with and without www and with http and https. Also include your subdomains, the address you use to access cPanel, and any other site you want to allow to use your files.
  3. Under Block direct access for the following extensions, enter the extensions to protect separated by commas, for example jpg,jpeg,gif,png,webp,mp4.
  4. Check Allow direct requests if you want a file to be openable by typing its address in the browser, for example https://yourdomain.com/img/photo.jpg.
  5. Optional: under Redirect request to the following URL, enter the address that visitors who link your files without permission will see instead of the file.
  6. Click Submit.

Disable protection

Click Disable.

Important: disabling protection deletes the list of allowed URLs. Copy and save it beforehand if you plan to enable it again.

Common issues

  • Images stopped displaying on my own site or on a subdomain: a variant of the address is missing from the allowed URLs list. Consult the article I cannot view the images of my cPanel services subdomain.
  • Other sites still display my images: check that the file extension is in the blocked extensions list and reload without cache using Ctrl + F5.
  • High bandwidth consumption: in addition to enabling protection, review usage in cPanel. If your site needs more bandwidth, you can upgrade the service: consult the sales department from the client portal or via the online chat.

If you need help, open a ticket from the client portal or inquire via the site's online chat.

  • 21 Users Found This Useful
Was this answer helpful?

Related Articles

How to send information from forms - FormMail

This article explains how to send form data to an email on your domain using FormMail Clone, the...

PHP Scripts - Activating PHP support for the service.

This document contains information on how to choose or change the PHP version for each domain...

I cannot view the images on my cPanel services subdomain

This document contains information to resolve the issue of images not displaying on a subdomain...

DomainKeys and SPF - Prevent identity spoofing.

This document contains information to protect your domain against identity spoofing, configuring...

DomainKeys for sending email

This document contains information to verify and activate DKIM, SPF, and DMARC on your domain...