cPanel & WHM Version 94 has been released, and brings a slew of great updates. Take a look at what is included, and then upgrade today!

URL trigger to whitelist IP address

Gary Korn shared this idea 5 years ago
Open Discussion

As a server administrator I would like an interface in WHM that would allow me to define a URL that, when access, would whitelist the accessing IP address in Host Access Control ( /etc/hosts.allow ) for the defined service (SSH/WHM/cPanel).


For example, in WHM I would define a URL of https://hostname/whitelistmyipforwhmnao. Then I would access that URL from my dynamic IP address of 1.1.1.1, and 1.1.1.1 would be added to /etc/hosts.allow and allowed to access port 2087.


Another example; in WHM I would define a URL of https://hostname/whitelistmyipforcPanelnao. Then I would access that URL from my dynamic IP address of 1.1.1.1, and 1.1.1.1 would be added to /etc/hosts.allow and allowed to access port 2083.

Leave a Comment
 
Attach a file