Protect a members area from shared passwords (Leech Protection)

SSL & Website Security

0 people found this article helpful

Leech Protection in cPanel spots a members-area login that too many people use, sends them to another page and can lock that login. Set it up per folder.

Good to know: Leech Protection works on folders that are password-protected with cPanel's Directory Privacy. If your folder has no username and password yet, set that up first: Password-protect a folder. It doesn't watch the logins of WordPress or other apps.

"Leeching" means a member posts or passes on their username and password, and suddenly many people log in with it. cPanel counts the logins per username. When a username goes over your limit in two hours, the visitor is sent to a page you choose, you can get an email, and cPanel can switch the login off.

Turn on Leech Protection

  1. Log in to cPanel (see Log in to cPanel from the client area). Type Leech in the Search Tools box at the top and open Leech Protection.

  2. The page starts in your home folder. Click public_html (the folder's name or icon) to open it, then click Edit next to the protected folder, for example members.

    cPanel Leech Protection folder list in public_html with the Edit button next to the members folder
  3. The page says Leech protection is currently disabled on the folder. Under Set up Leech Protection:

    1. Number of Logins Per Username Allowed in a 2-Hour Period: cPanel recommends 4. A lower number can lock out real members whose internet connection dropped and came back. If members reconnect from the same network, their logins aren't disabled.
    2. URL to Redirect Leech Users to: the page shown instead, for example https://yourdomain.com/ or a page that explains the account is blocked. It must be outside the protected folder, or visitors get an internal server error.
    3. Send Email Alert To: tick it and enter your email address to get a message each time someone is redirected.
    4. Disable Compromised Accounts: tick it to switch off the password of a username that goes over the limit. Without it, the visitor is only redirected and you may get a lot of alert emails.
    5. Click Enable.
    Leech Protection settings for the members folder with the login limit, redirect URL, email alert, Disable Compromised Accounts and the Enable button marked

To test it, don't share a real login: create a test user for the folder in Directory Privacy and log in with it from several devices.

Turn it off

Open Leech Protection, click Edit next to the folder and click Disable under Disable Protection.

Give a locked member access again

With Disable Compromised Accounts on, cPanel disables the password of a member who went over the limit. To give access back, set a new password for that user. Click Manage Users on the folder's Leech Protection page: it opens the folder in Directory Privacy, where you change the user's password (see Password-protect a folder). Send the new password to the member only, and ask them not to share it.

Common problems

Visitors see an internal server error instead of your page

The redirect address is inside the protected folder. Change URL to Redirect Leech Users to to a page outside it, for example your homepage, and click Enable again.

Real members get locked out

The limit is too low for people who log in from a phone, a laptop and at work on the same day. Set the number of logins back to 4 or a little higher.

You can't find your folder in the list

The list shows the folder you're in. Use Home and Up One Level to move around, or Settings to choose where the page starts: your home folder, the web root (public_html), or the document root of one of your domains.

Nothing happens even though a login is shared

Leech Protection only sees logins to a folder protected with Directory Privacy. If your members log in through WordPress or another app, use that app's own security settings instead.

Related articles

Still stuck? Open a support ticket and we'll help.


Was this answer helpful?

2FA 301 redirect 3D Secure 404 page 500 error 550 error A record accept quote access log account credit account details account password Account Preferences account security add funds addon domain address importer affiliate program AI assistant AlmaLinux 9 Android email Apache Apache virtual host API token Apple Mail Ask AI auth code authenticator app auto-renew automatic payment automatic updates autoresponder AutoSSL bandwidth billing address billing contact billing section block editor block IP bounce bounce message BoxTrapper build a WordPress website bulk email accounts business email buy domain buy hosting buy SSL certificate CalDAV calendar sync callback can't log in cancel hosting cancellation card declined CardDAV catch-all Certbot change domain WordPress change email change nameserver change package change password change payment checklist checkout choose a plan client accounts client area clone WordPress cloud server coming soon page commission company name confirmation link contact contact form Contact Information contacts control panel cPanel cPanel API cPanel contact email cPanel DNS cPanel domains cPanel email cPanel install cPanel language cPanel layout cPanel login cPanel password cPanel SSL cPanel update cPanel users create cPanel account create mailbox credit card cron cron job CRT key CA bundle CSF firewall CSV import currency custom error page Custom Nameservers custom offer dashboard data center database password database privileges database user Database Wizard date.timezone DDNS deceptive site ahead default address delete database delete old emails deny access deploy deposit device email settings Directory Privacy disk space disk usage DKIM DMARC DNS cache DNS explained DNS Records DNS Zone Management document root domain alias domain grace period Domain Hosting Domain Management domain name domain renewal domain transfer downgrade download invoice due date dynamic DNS ElySpace email account email account exists email backup email client email delivery email disk usage email filters email forwarder email history email hosting email login email migration email password email ports email preferences email quota email routing email signature email test email verification EPP code error error log error pages EV SSL expired domain expiry expiry date export database export emails fake email faster support feedback File Manager file permissions firewall first website flush DNS folder force HTTPS forgot password form email not received forward email free migration free SSL FTP account's password FTP password Galaxy email setup getting started Git GitHub Gmail Gmail app GoDaddy good ticket Google malware warning Google sign-in Google Workspace GST number Gzip compression hacked website hacked WordPress hardening help help center home server hosting hosting addons hosting glossary hosting location hosting plan Hosting Service hosting terms hosting tools hosting types hostname hostname SSL hostnamectl hotlink protection HOW TO ADD NAME SERVERS TO MY DOMAIN NAME How to create additional FTP accounts in cPanel How to create FTP accounts in cPanel How to setup name-servers for a domain htaccess htaccess redirect HTTP to HTTPS image theft IMAP IMAP settings IMAP SMTP settings import emails import SQL Imunify360 index.php virus INR install plugin install SSL certificate install WordPress instant answers invite user invoice invoice details invoice emails invoice PDF invoices IP address IP Blocker iPad iPhone email knowledgebase language large database leech protection LEMP Let's Encrypt LFD linked accounts LiteSpeed Cache live chat locked out log out login login email login problem lost email Mac Mac email mail rules mailbox mailbox check mailbox full mailbox size mailing list Mailman maintenance maintenance mode malware removal malware scan manage services mass payment max_execution_time members area memory_limit menu migrate WordPress migration request migration ticket mobile webmail money-back guarantee move email move website move WordPress site MultiPHP INI Editor MultiPHP Manager multiple accounts multiple websites MX record MX records my domains MySQL MySQL database MySQL user mysqldump nameserver Nameservers network drive new account new order newsletter Nginx Node.js notifications npm nvm open ticket Optimize Website or delete order order email out of office outage Outlook Outlook app Outlook IMAP Outlook mobile Outlook password prompt OX App Suite OX webmail page speed password protect pay all pay invoice payment payment details payment failed payment method payment methods PayPal permalinks permissions phishing phone support PHP errors PHP timezone PHP version PHP-FPM php.ini PHPMailer phpMyAdmin plugin updates point domain print invoice printer SMTP product addons products professional email profile public_html publish a post quick start quota quote quotes rating Raw Access raw access logs reading settings redemption period redirect referral link refund register register domain remove user renew domain renewal repair database reseller hosting reset admin password reset password resource usage restore WordPress revoke access revoke privileges root login Roundcube Roundcube export Roundcube identities Roundcube signature rsync backup Samsung Email scam scan to email scheduled task search Search Console self-hosted WordPress send and receive send as server IP address server location server security server status service details services session setup setup domain i setup domain name shared passwords shared vs VPS sign up single sign-on site address Sitejet Builder SMTP SMTP settings spam spam filter SpamAssassin SPF SSH SSH hardening SSH key SSL certificate static front page strong password subaccount subdomain suggestions support ticket support ticket tips support tickets suspension switch account tar test site Thunderbird ticket reply ticket status track delivery transfer website troubleshooting two-factor authentication UAPI Ubuntu Ubuntu 24.04 UFW unpaid invoice unsubscribe unzip upcp upgrade hosting UPI upload files upload_max_filesize URL forwarding user management User Manager username vacation reply VAT ID verify email Web Disk web hosting web hosting basics web server WebDAV webmail webmail From address webmail on phone webmail password website builder website email website migration website not loading Website Performance website security welcome email WhatsApp WhatsApp support whitelist WHM wildcard SSL WordPress 404 WordPress backup WordPress caching WordPress critical error WordPress email WordPress errors WordPress homepage WordPress hosting WordPress login WordPress malware WordPress Management WordPress menu WordPress offline WordPress pages WordPress password WordPress plugins WordPress post WordPress security WordPress SMTP WordPress speed WordPress staging WordPress themes WordPress transfer WordPress update WordPress URL WordPress.org vs WordPress.com WP Mail SMTP wp-admin wp-admin login wp-cron zip Zone Editor zone templates