How to Restrict Access to Directories by IP Address
To secure your admin area from hackers, you should only allow access to your admin directory from selected IP addresses. You can create a dot htaccess file in the directory where you want to restrict access to specific IP addresses.
For example, if you have a WordPress blog installed on your main directory and you log in via example.com/wp-admin, you should create an htaccess file in /wp-admin/.htaccess and put the following code into it. Please, don't forget to replace the allowed IP aSome readersHow to Disable the Two-Factor Authentication on Your cPanel Account
Follow this instruction to remove two-factor authentication from your cPanel account.
1. Log in to your cPanel account.
2. In the Security section, click on Two-Factor Authentication.
3. Click on Remove Two-Factor Authentication.
(https://storage.crisp.chat/users/helpdesk/website/fb297e5cd2410000/8056fd79-10be-438b-8eb6-a59b991630ewm.Some readersHow to Block Any IP Address via an htaccess Rule
If you want to block an IP Address, you can add the below lines to your htaccess file.
order allow, deny deny from IP-ADDRESS allow from all
Replace IP-ADDRESS with the IP you want to block.Some readersHow to Password Protect a Directory in cPanel
You can lock a directory with a password using the cPanel's Directory Privacy.
1. Log in to your cPanel account.
2. In the Files section, click on Directory Privacy.
3. Click on the directory to open it.
4. Click on theFew readersHow 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 YourFew readersHow 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.
1. Log in to your cPanel account.
2. In the Security section, click on HotLink Protection.
3. If it displays Hotlink protection is currently disabled, click on Enable.
(https://storage.criFew readersHow to Block an IP Address to Deny Access to Your Website
You can blacklist an IP Address to deny access to your website.
1. Log in to your cPanel account.
2. In the Security section, click on IP Blocker.
3. Under the Add an IP or Range, you should enter the IP Address you want to block.
(https://storage.crisp.chat/users/helpdesk/website/d9fa36971909e000/3a225262-9da3-4d6c-b8c5-5801d99adzyj.gFew readersHow to Protect the htaccess File
You can prevent unauthorized access to your htaccess file by adding this rule to the file:
.htaccess protection order allow, deny deny from all satisfy allFew readersHow to Disable Directory Browsing Using the htaccess Rule
For security purposes, you should disable directory browsing on your website so no one can see the files/directories of your website.
You can disable Directory Browsing by adding the below line to your dot htaccess file.
Options -IndexesFew readersHow to Enable or Disable Mod Security in cPanel
Are you facing the issue of IP getting blocked repeatedly? If the answer is Yes, then it may have happened due to Mod Security.
What is Mod Security?
ModSecurity is a module that protects your website from various types of attacks. Mod Security protects a website from hackers, brute force attacks, cross-site request forgery(CSRF), and many other threats. Although it sometimes creates a problem, we do not recommend you to disable it but instead fix your software's vulnerability.
DisFew readers