Colonel Serveur
colonel fast guide webhosting

Comment utiliser la protection Hotlink dans cPanel

Introduction

De nombreux sites Web sont confrontés à un problème connu sous le nom de « vol de bande passante ».,» qui se produit lorsque d'autres sites Web renvoient directement à vos fichiers, en particulier des images et des vidéos, sans autorisation.. Cet accès non autorisé peut augmenter votre utilisation de la bande passante et ralentir votre site. Le Hotlink Protection tool in cPanel offers an effective way to prevent this problem.

What is Hotlink Protection?

Hotlink Protection is a built-in feature in cPanel that allows website owners to block other sites from directly accessing their multimedia files. Once enabled, only authorized domains can load your site’s content.

Why Use Hotlink Protection?

  • Preserve bandwidth: Prevent unauthorized sites from using your server’s resources
  • Enhance security: Protect your exclusive content
  • Improve performance: Reduce unnecessary file loads by external sites
  • Protect copyright: Prevent content from being used without your consent

Steps to Enable Hotlink Protection in cPanel

Follow these steps to activate this feature:

1. Connectez-vous à cPanel

Access your cPanel account via yourdomain.com/cpanel.

2. Locate Hotlink Protection

Dans le Sécurité section, click on Hotlink Protection.

3. Enable the Feature

Cliquez sur le Activer button to activate Hotlink Protection.

Wordpress Hosting

Hébergement Web WordPress

À partir de 3,99 $/mois

Acheter maintenant

4. Define Allowed Domains

Dans le URLs to allow access field, enter the domains you want to whitelist. Par exemple:

http://example.com
http://www.example.com

5. Specify Protected File Types

Sous Block direct access for the following extensions, list the file types you wish to protect:

.jpg
.png
.gif
.mp4

6. Disable Direct Requests

Uncheck the option Allow direct requests to fully block unauthorized access.

7. Save Settings

Cliquez Submit to save and apply the changes.

Testing Hotlink Protection

To verify the feature is working:

  • Embed an image from your site into another domain
  • Check if the image displays
  • If it doesn’t load, the feature is working as expected

How to Disable Hotlink Protection

If you need to turn off this feature:

Cheap VPS

Serveur VPS pas cher

À partir de 2,99 $/mois

Acheter maintenant
  • Go back to Hotlink Protection dans cPanel
  • Cliquez sur le Disable bouton

Tips for Using Hotlink Protection

  • Always add your own domains to the allowed list
  • Avoid excluding essential file types by mistake
  • Use online tools to test file accessibility from other domains

Foire aux questions

1. Does Hotlink Protection affect SEO?

Non. En fait, reducing bandwidth abuse can improve site speed, which benefits SEO.

2. Can I allow specific files to bypass Hotlink Protection?

Oui, you can configure exceptions through cPanel settings.

3. What if my site stops working correctly?

Double-check your domain whitelist and file extension settings to ensure correct configuration.

4. Does this apply to video files too?

Oui, Hotlink Protection can be applied to all multimedia file types, including videos.

Conclusion

Hotlink Protection in cPanel is a powerful tool for securing your website’s content and saving bandwidth. With proper setup, you can block unauthorized use of your resources and enhance overall site performance.

Windows VPS

Hébergement VPS Windows

Remote Access & Full Admin

Acheter maintenant
Partager cette publication

Laisser un commentaire

Votre adresse e-mail ne sera pas publiée. Les champs obligatoires sont indiqués avec *