How to Password Protect a Directory in cPanel
You can lock a directory with a password using the cPanel’s Directory Privacy. Log in to your cPanel account. In the Files section, click on Directory Privacy. Click on the directory to open it. Click on the Edit, showing next to the directory you want to protect. Under Security Settings, check-mark Password protect this directory. Then click on Save. Now click on Go back. Scroll down the page. Under Create User, fill in the username and password fields or use the Password Generator option to generate a new random password and copy it to Notepad. Click on Save. If you try to open the password-protected directory in your browser via the URL www.example.com/myfolder, your browser prompts for credentials.
How to Enable the Two-Factor Authentication on Your cPanel Account
Security is important for our data safety. We recommend you to enable the Two-Factor Authentication (2FA) on your cPanel account in order to prevent hackers from accessing your cPanel account even if they have somehow obtained your account details. What are the Requirements? You would need a smartphone with a supported time-based one-time password app. Mobile phone OS such as Android, Windows and iOS have an app for 2FA. How to Enable the Two-Factor Authentication on Your cPanel Account? Log in to your cPanel account. In the Security section, click on Two-Factor Authentication. Click on Setup Two-Factor Authentication. Under Step 1, scan the QR code using your Google Authenticator or 2FA Authenticator application. If your APP doesn’t have a QR code reader, you can manually enter the account name and key number. Under the Security Code, enter your Two-Factor Authentication code and click on Configure Two-Factor Authentication. It should display
How to Disable the Two-Factor Authentication on Your cPanel Account
Follow this instruction to remove two-factor authentication from your cPanel account. Log in to your cPanel account. In the Security section, click on Two-Factor Authentication. Click on Remove Two-Factor Authentication. For confirmation, click on Remove. It should show a message such as Success: The system removed the two-factor authentication from your account.
How to Block an IP Address to Deny Access to Your Website
You can blacklist an IP Address to deny access to your website. Log in to your cPanel account. In the Security section, click on IP Blocker. Under the Add an IP or Range, you should enter the IP Address you want to block. Click on Add. Here is Example: Single IP Address: 192.168.0.1 Range: 192.168.0.1-192.168.0.40 Implied Range: 192.168.0.1-40 CIDR Format: 192.168.0.1/32 Implies 10.*.*.* — 192.
Related: ip range
How to Protect Website Images From Being Displayed at an External Website
External websites may display your website images on their websites, thus stealing your bandwidth. You can prevent this with Hotlink Protection. Log in to your cPanel account. In the Security section, click on HotLink Protection. If it displays Hotlink protection is currently disabled, click on Enable. How to Configure Hotlink Protection? Under URLs to allow access, you can allow access to an external website or your website. For example, if you have a subdomain such as demo.example.com, you can add this website’s URL to the list of allowed websites.