PROBLEM
I want to restrict who can access the Atmail WebAdmin.
ENVIRONMENT
- On-Premise Server + WebMail Installations: Version 6.0 > Current Version
- Webmail Only Installations: Version 6.0 > Current Version
CAUSE
If you want to restrict WebAdmin access to specified IP addresses, you can do the following. This will redirect back to the login page if the IP does not match.
RESOLUTION
- Open and edit your http.conf file. Add the following code.
RewriteEngine On
Where
RewriteCond %{REMOTE_ADDR} ![IP-Address]
RewriteRule ^/(.*)index.php/admin(.*) /$1index.php [R][IP-Address]
is the desired IP address. - Save, exit and restart Apache.
# /etc/init.d/httpd restart
- If you wish to be able to access the WebAdmin from multiple IP's do the following.
RewriteEngine On
RewriteCond %{REMOTE_ADDR} ![IP-Address]
RewriteCond %{REMOTE_ADDR} ![IP-Address]
RewriteCond %{REMOTE_ADDR} ![IP-Address]
RewriteRule ^/(.*)index.php/admin(.*) /$1index.php [R]
Comments