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:

  • Efficiency: Maintaining the integrity of your resources by blocking unauthorized access can save bandwidth while improving performance.
  • Accessibility: Ensure that you do not prevent access from legitimate traffic or search engine bots that may require access for indexing files directly.
  • Maintenance: Periodically review the allowed URLs and file types for access as your website grows.

Conclusion

With just a few clicks, you can save bandwidth and safeguard your website’s content by enabling hotlink protection in cPanel. Hotlink protection allows website owners to set specific domains in which their content would be displayed. Caution is advised when changing settings, however, as blocking legitimate traffic may occur.

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

Related Post

How to Generate a CSR for Apache/Nginx with O

When it comes to ensuring the security of websites and ...

How to Set Up an Nginx Reverse Proxy

A reverse proxy server acts as an intermediary between ...

How to Use SFTP to Connect to Your WordPress

Managing your WordPress site often requires direct acce...

What is HTTPS Not Secure and how to fix it

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

Install Wildcard SSL Certificate on Ubuntu 22

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

How to Enable Two-Factor Authentication in WP

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

Leave a Comment