Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: