There are two methods: The first one is all implemented with nginx. First, you need to know the IP address rules of Guangdong Province, and then location / {
if ( $query_string ~* 你的正则表达式匹配 ) {
deny all;
}
............
Another way to implement in-program control, the general idea is similar
There are two methods:
The first one is all implemented with nginx. First, you need to know the IP address rules of Guangdong Province, and then
location / {
............
Another way to implement in-program control, the general idea is similar
geoip module