Security
Security
Nabtech offers various security features to help protect your website, including a password-protected directory, IP blacklist, and hotlink protection.
How to Password Protect a Directory in cPanel
You can lock a directory with a password using cPanel's Directory Privacy feature.
- Log in to your cPanel account.
- Navigate to the Directory Privacy section.
- Select the directory you want to protect and set a password.
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.
- Go to the IP Blocker section.
- Enter the IP address you wish to block.
How to Protect Website Images From Being Displayed on External Websites
External websites may display your images, which can lead to unauthorized use. To prevent this:
- Implement hotlink protection in your cPanel account.
How to Block Any IP Address via an htaccess Rule
If you want to block an IP address, you can add the following lines to your .htaccess file:
order deny,allow deny from [IP_ADDRESS]
How to Disable Directory Browsing Using the htaccess Rule
For security purposes, you should disable directory browsing on your website to prevent unauthorized access.
Options -Indexes
How to Protect the htaccess File
You can prevent unauthorized access to your .htaccess file by adding this rule:
order allow,deny deny from all
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 specific IP addresses.
order deny,allow
deny from all
allow from [YOUR_IP_ADDRESS]
How to Enable or Disable Mod Security in cPanel
If you are facing issues with your IP getting blocked repeatedly, it may be due to Mod Security settings. You can enable or disable it in your cPanel account.
How to Enable Two-Factor Authentication on Your cPanel Account
Security is important for data safety. We recommend enabling Two-Factor Authentication for added protection.
- Log in to your cPanel account.
- Navigate to the Security section and select Two-Factor Authentication.
- Follow the prompts to set it up.
How to Disable Two-Factor Authentication on Your cPanel Account
To remove Two-Factor Authentication from your cPanel account, follow these steps:
- Log in to your cPanel account.
- Go to the Security section and select Two-Factor Authentication.
- Follow the prompts to disable it.
Was this article helpful?