Answer the question
In order to leave comments, you need to log in
How to prevent access to the site to users with a certain language?
The task is simple - hundreds of Chinese are pouring into the site a day. I am sure that this is a traffic surge by one unscrupulous office that wants to increase the attendance rates for the client. Blocking by IP is not a hunt, you need to fasten geoip. It is much easier to slash users with the Chinese language installed. but how to do that?
Answer the question
In order to leave comments, you need to log in
chop them by Accept-Language, sometimes the language is specified in the User-Agent.
Well, or it’s trite to just use geoip, but one problem is that you need to update the ip database often.
GEOIP in nginx is configured in half an hour and keeps foreign DDoS with a bang.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question