When I blocked IP space in the past using Nginx, it seemed to parse the request anyway. That is the blocking was very low level. The code from the OP will add to the "regular" 403s, which I create by hot link detection. I look at the 403s to insure it isn't some other bug (AKA my coding), so the IP space blocking could really increase the error report size. It is a bit off topic, but you really should look at hit linkers to determine if the website is of low reputation (spam or porn). Back to the OPs request, unless the OP lives in a data center, the question makes it appear to me like they are using a home server. I did that in the 90s, but the internet is a really nasty place to have your home IP internet facing. These VPSs are really cheap. I doubt I will ever use a hosting company again
I don’t think it’s a dumb question at all. It’s a very astute question. My experience of protecting a high traffic retail website from a foreign state-sponsored DDOS was that doing IP blocking on a hardware load bakancer in front of the nginx tier was the difference between the site bring available and the site being down on an unusually busy day. The economic impact of having both nginx and the load balancer working in concert saved millions of dollars revenue in one busy day. The load balancer (well it was the WAF module in an F5 BigIP) was doing what could have equally been done in a firewall. With F5’s acquisition of nginx we might see innovative ways of combining the best hardware and software ADC solutions to build rock solid websites. Anything you can do to protect your backend helps your website stay alive, whether it’s browser caching, CDN, firewall, hardware load balancer, before getting to nginx. Then if nginx has intelligent caching rules you can build a site that sustained enormous bursts of traffic and stays up. Nginx is like a Swiss Army knife of http that can do so many different things - but that doesn’t mean it’s right to expect that it does everything. Peter Sent from my iPhone
|
_______________________________________________ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx