Nginx Deny all, allow specific ip
Requirements - Deny all ips. - Allow specific ips ( public ip ) Prepare 0. Check your nginx nginx -V 1. If not Install or reinstall nginx with --with-http_realip_module 2. modified nginx.conf http { server { (snip) set_real_ip_from {from ip}; # IP range real_ip_header X-Forwarded-For; } } 3. implement deny, allow ( server, or location ) server { (snip) deny all; allow xxx.xxx.000.000/16 allow xx..
2020.04.25