WHMCS

How to Restrict Access by IP Address in WHMCS

How to Restrict Access by IP Address in WHMCS For increased protection, if your staff uses fixed IP addresses, you can restrict access to a specific set of IP addresses. This will help to…

How to Restrict Access by IP Address in WHMCS

How to Restrict Access by IP Address in WHMCS

For increased protection, if your staff uses fixed IP addresses, you can restrict access to a specific set of IP addresses. This will help to prevent access by hackers and other malicious users.

Restricting Access

To restrict access, create a .htaccess file in your WHMCS admin directory.

Add the correct content for your version of Apache to the new .htaccess file:

Apache 2.2

order deny,allow
allow from 12.34.5.67
allow from 98.76.54.32
deny from all

Apache 2.4

Require ip 12.34.5.67
Require ip 98.76.54.32

You can specify as many different allow from or Require ip lines as you require. You can allow entire IP subnets by specifying just the first part of an IP address (for example, 12.34.). This is .htaccess IP restriction.

 

Written By

Shaik Sai Meera

WebyStrata Editorial Team

Shaik Sai Meera shares practical publishing insights, comparisons, and WordPress-focused growth guidance for modern web teams.

350 articles published Member since 2021