How to Enable or Disable Hotlink Protection in cPanel?

Hotlinking is a term used when external websites link directly to the images or files on your website. This can consume your server’s bandwidth since every time the external site is loaded it pulls the data from your server. This can lead to increased hosting costs and slower website performance for your visitors. One effective way to prevent hotlinking is through hotlink protection tools provided by hosting control panels like cPanel. In cPanel, enabling and disabling hotlink protection is straightforward.

In this post, we will discuss hotlink protection cPanel and how to enable or disable hotlink protection in cPanel. Further how you can take control and manage the resources of your website that are used.

Hotlinking occurs when another website embeds your images, videos, or other files directly into their content. This can be problematic, as it consumes your bandwidth without generating any traffic or revenue for your site. Luckily, cPanel offers a built-in tool called “Hotlink Protection” to help you manage this issue.

Before diving in, it’s important to understand what hotlink protection does. When enabled, it prevent hotlinking cPanel and other websites from directly linking to your files. Instead, visitors must access files through your website’s domain, ensuring your resources are used appropriately and traffic is accurately recorded.

To enable hotlink protection cPanel following are the steps are described below:

Step 1: Log into cPanel

For hotlinking in cPanel access your hosting account by logging into cPanel with your username and password.

cPanel login

Step 2: Locate the Security Section

Once logged in, find the ‘Security’ section of cPanel, and click on the ‘Hotlink Protection’ icon.

Hotlink Protection

Step 3: Configure Hotlink Protection

On the Hotlink Protection page, configure the following settings:

  1. URLs to allow access: List the websites allowed to hotlink your content which is usually your domains.
  2. Block direct access for these extensions: Specify which image file types to protect. For example jpg, jpeg, png, and gif to disable image hotlinking cPanel.
  3. Allow direct requests: Optionally allow direct links to your files which is useful for image search engines.
  4. Redirect request to the following URL: If someone tries to hotlink redirect them to a specific page such as a warning message.
Hotlink Protection

Step 4: Enable Protection

Once all settings have been configured, click on the ‘Enable’ button. The system will implement hotlink protection immediately.

Hotlink Enable

If for any reason you need to disable hotlink protection cPanel the process is just as simple:

Step 1: Access Hotlink Protection

Log into cPanel and navigate back to ‘Hotlink Protection’ under the ‘Security’ section.

Step 2: Disable Hotlink Protection

On the Hotlink Protection page, simply click on the ‘Disable’ button. Your resources will now be accessible for hotlinking by other websites.

Hotlink Disable

Above are the following steps to show how to stop hotlinking cPanel.

Important Note

Disabling hotlink protection can expose your resource limits to unauthorized use. Only consider disabling it if you understand the potential consequences and have a specific reason for doing so.

The following are the important considerations when using hotlink protections:

  • Performance: Preventing unauthorized sites from using your resources can save bandwidth and potentially improve your site’s performance.
  • Accessibility: Make sure not to block legitimate traffic or search engines that might need direct access to files for indexing purposes.
  • Maintenance: Regularly check the list of allowed URLs and file types as your website evolves.

Conclusion

Enabling hotlink protection in cPanel is a simple yet effective way of saving bandwidth and protecting your site’s content from unauthorized use. By following a few easy steps, website owners can take control of their content and ensure it’s displayed only where they want it to be. Remember to periodically review and adjust settings as needed so as not to accidentally block legitimate traffic.

When it comes to buying hosting Ultahost is the best place to provide secure and affordable web hosting services for bloggers, small-business owners, web designers, and developers. Check out our plans according to your requirements.

FAQ

How do I enable Hotlink Protection in cPanel?
Can I disable Hotlink Protection in cPanel?
What is Hotlink Protection used for?
Where can I find Hotlink Protection settings in cPanel?

Related Post

How to Block UserAgents in .htaccess file

Controlling access to your website becomes essential fo...

How to Install SSL Certificate on NGINX Serve

Securing your website with an SSL certificate is import...

How to Generate Google reCAPTCHA Keys for Sit

Malicious actors constantly devise new methods to explo...

How to Enable Two-Factor Authentication in WP

Two-factor authentication or 2FA adds an extra layer of...

Password Protecting Files and Directories wit

From the web security perspective, information is valua...

What is HTTPS Not Secure and how to fix it

Have you ever encountered the "HTTPS Not Secure" messag...

Leave a Comment