What is Leech Protection in cPanel

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 which 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 Leech Protection option.

The following interface will appear when you select this option:

leech protection

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 :

leech protection

  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.

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

leech protection

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

For setting up Leech Protection perform 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 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 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.

leech protection

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.

leech protection

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

leech protection

 

Visit – Hostripples

Cheap VPS Servers In USA


Vishwajit Kale

Vishwajit Kale blazed onto the digital marketing scene back in 2015 and is the digital marketing strategist of Hostripples, a company that aims to provide affordable web hosting solutions. Vishwajit is experienced in digital and content marketing along with SEO. He's fond of writing technology blogs, traveling and reading.