2 ms·
In your nginx, server section: deny 1.2.3.0/24; And all 256 ips from 1.2.3.0 to 1.2.3.255 get banned. You can have multiple "deny" lines, or a file with "
by otherme123 2y ago
In your nginx, server section:
deny 1.2.3.0/24;
And all 256 ips from 1.2.3.0 to 1.2.3.255 get banned. You can have multiple "deny" lines, or a file with "deny" and then include it.
It's better to do it at the firewall.