Blocking or allowing IP-addresses in Nginx Posted on 2018-03-16 Nginx Config1234567891011121314server { listen 80; server_name kimtaek.github.io; charset utf-8; client_max_body_size 75M; location / { deny 192.168.1.1; # Blocking specific IP allow 192.168.1.0/24; # Your specific IP allow 10.1.1.0/16; allow 2001:0db8::/32; deny all; }}