Enable-hotlink-protection

From LHYcloud Docs
Jump to navigation Jump to search

Hotlink protection in cPanel is a feature that prevents other websites from directly linking to files (like images, videos, or documents) hosted on your server. Without it, someone could embed your images or videos on their site and use your bandwidth without permission.

Hotlink protection is usually done through .htaccess rules on Apache or Nginx configuration.

When a request comes for a file (say logo.png), the server checks the HTTP referrer (the site the request came from).

  • If the referrer matches your allowed list (like your domain), the file loads.
  • If not, the request is blocked or redirected.

Steps to enable Hotlink Protection:

step-1

Log in to cPanel.

Cp1.webp


step-2

Look for the Security section, then click Hotlink Protection.

Hl1.png

step-3

Make sure the domain name you wish to protect is in the box called URLs to allow access.

Hl2.png

step-4

If you're satisfied with the URLs and current settings, click the Enable button.

Hl3.png

If you also want to disable Hotlink protection, follow these steps:

step-1

On the Hotlink Protection page, click Disable.

Hl4.png

step-2

A confirmation page will be displayed.

H5.png