cPanel

What is Leech Protection in cPanel? Steps to configure leech protection

Table of Contents

In the previous blog, we have discussed Hotlink Protection in cPanel and in today’s Blog we will be discussing Leech Protection in cPanel.

Leech Protection: –

It allows you to prevent your users from giving out or publicly posting their passwords to a restricted area of your site. This tool will redirect accounts that have been compromised to a URL of your choice. You can also suspend them if you choose.

For accessing this feature :

Log into your cPanel >> Navigate to Security >> Under it you will find the Leech Protection option.

The following interface will appear when you select this option:

For enabling Leech Protection on your site, perform the following steps:

  1. Click on the settings and then select one of the locations in which you wish to begin the navigation

When you click “Settings” a new interface will appear as follows :

  1. WebRoot: It will begin navigation in the document root for the primary domain.
  2. Document Root for: Select the domain from the drop-down menu for which you wish to begin navigation.
  3. Always open this directory in the future: It will always open your selection from step 1.
  4. Click “Save changes”.
  5. Then select the folder that you wish to protect by clicking on its name or you can navigate by clicking on the icons.

   6. When you select the particular folder which you wish to protect, then again a new interface will appear as follows :

Here you can see that the Leech protection is currently disabled on “the selected path”

For setting up Leech Protection perform the following steps:

  1. A number of logins per Username Allowed in a 2-hour period: – Here enter the maximum number of logins that you wish to allow each user within a 2 hour period.
  2. URL to Redirect Leech Users to – Here you are required to enter an URL for the users who exceed the maximum number of logins within 2 hour period.
  3. Send Email Alerts to – The system will send an email to the specified address when leech protection redirects users from the site.
  4. Disable Compromised Accounts:- The system will disable the passwords of users who trigger leech protection, suspending them. To reactivate their accounts, reset their passwords.
  5. Click “Enable”.

Disable Protection: –

For disabling the Leech Protection, perform the following steps :

  1. Navigate to the folder for which you wish to disable the leech Protection.
  2. Click “disable”.

Manage Users:-

Adding, Modifying, and Deleting users perform the following steps :

Note: If you are using a third-party software to add or remove users, you should have it use the password file: “on the specific path”

Top of Form

Bottom of Form

  1. Navigate to the folder for which you wish to manage the users.
  2. Click “Manage Users”. when you click on “Manage Users” you will be redirected to “Directory Privacy” by the system and the following interface will appear:
Set Permissions for “/<your specific path>”.

When a user attempts to access the protected directory through a browser, the site will prompt them to enter a username and password. The name that you choose for the protected directory will also display.

If you want to password protect this directory then you would require to select the checkbox for “Password protect this directory”.

Then you are prompted to enter the name for the protected directory and then save it.

Next, you are required to create a User. To enter the details of the user like -Username, Generate a strong password. Click “Save”.

In the following screen, I have shown you how to fill in the details of the user: For ex I have entered “example” as a name for the protected directory and entered “User1” as the username with a new password.

Once I “Save” these changes then the following success message will appear:

Visit – Hostripples

Cheap VPS Servers In the USA


Amit Jadhav
Amit Jadhav is working in Hostripples since years he is a passionate engineer... He is working as a senior technical support engineer, as it's a responsible position because it's a lifeline to our customers... Moreover he is dealing in troubleshooting server problems and is always ready to assist our customers in technical issues... Hostripples is glad to have Amit Jadhav on the board...

View Comments

Recent Posts

Crafting a Professional Email: Step-by-Step Guide

Due to growing digitalization, Email Communication has become the backbone of professional interactions. Yet, surprisingly, many professionals struggle to craft…

24 hours ago

Demystifying SSL: What Every Website Owner Should Know

As the digital landscape continues to evolve, securing your website has never been more crucial. SSL, or Secure Sockets Layer,…

1 week ago

Cyberduck and FileZilla: A Comprehensive Comparison

As a web designer and web developer your experience must have reached to new height, right? Further, you need to…

4 weeks ago

The Science Behind Social Media Posting Times

In today's digital landscape, timing is everything. Whether you're a social media manager, business owner, or content creator, the success…

1 month ago

Mastering Google Search Console: Tips for New Users

Are you a website owner? Maintaining the website is the prime concern for any website owner. Yes, it’s equally important…

1 month ago