APACHE Web Server

How to whitelist GoodAccess Gateway IP in Apache Web Server.

Step 1

Open the .htaccess file generator.

Step 2

Enter your GoodAccess gateway's Static IP address and click on Generate .htaccess File.

Step 3

Set I want to allow these IP addresses and ban everyone else.

Step 4

Create a .htaccess file with the generated content and copy it to your web server. Place it in the directory containing the part of the website which should be protected.

Step 5

Test the configuration by accessing your system without being connected to GoodAccess to ensure the connection is not allowed to the public.

Step 6

Congratulations! From now on your system will be protected and accessible only by your team through the GoodAccess network.

‍

Note: In case if the .htaccess file doesn't work, check whether your APACHE is configured to AllowOverride All. See APACHE AllowOverride documentation.

‍

There are more ways to configure your APACHE web server, allowing access only through the GoodAccess network. See APACHE Access Control documentation and APACHE .htaccess file documentation.