Forum Moderators: phranque
With that out of the way, is there any way to block access from China and send them to a (polite) 403 page? I've found the list of IP blocks and, as I'd guessed it's too large to block IP by IP, even blocking by ###.###.###. would be a huge file.
Has anyone else had to do this? Is there a better way that I'm missing?
Or, you could block by remote hostname, if the IP address resolves via reverse-DNS to a hostname.
Because IP ranges are doled out a little at a time, there is no IP-address-to-country correspondence, so as you've observed, it's a big list any way you do it.
I'd suggest paying attention to which ISPs or IP blocks are your biggest problem, and addressing those first.
Jim