NGINX
This guide will show you how to whitelist your GoodAccess IP address in NGINX.
Last updated
This guide will show you how to whitelist your GoodAccess IP address in NGINX.
Last updated
If you are using NGINX’s main configuration file nginx.conf without virtual hosts, run the following command
If you have configured separate virtual hosts for your website (e.g. www.example.com), such as /etc/nginx/sites-enabled/example.conf then open its configuration with the following command
There are multiple ways to whitelist an IP in NGINX. We will look at each one. If you want to whitelist the IP 45.43.23.21 for a domain or your entire website, you can add the following lines in your configuration file.
The above lines will make NGINX deny all IPs except 45.43.23.21. The first line allow 45.43.23.21 will allow access from that IP, deny all will block all other IPs.