Here's how to use cPanel's Leech Protect feature to prevent users from disclosing or publishing their passwords in a restricted area of your website.
This feature will redirect accounts that have been compromised with a chosen URL (and suspend them if you choose to do so).
When users publish using their name and password, unauthorized and malicious visitors can use the credentials to access restricted areas on the website. This practice is known as Leeching.
Here's how to activate Leech Protection in the directory:
1. Log in to your cPanel account. In the "Security" section, click on the "Leech Protection" icon.
2. Click the name of the directory you want to protect. Click in “Edit”.
On the screen below you will see options to configure your Leech Protection.
1. Under “Configure Leech Protection”, enter the number of logins allowed per username in a two-hour period.
2. Enter a URL to redirect users to another page if their account is compromised.
3. To receive an email alert if your account is compromised, select the “Send email alert to” option and enter an email address."
4. To disable compromised accounts, select the “Disable compromised accounts” option.
5. To finish, click “Enable”.
A success message will be displayed
Hope this helps !