E
E
EvilDev2022-04-06 06:51:24
Nginx
EvilDev, 2022-04-06 06:51:24

Why doesn't deny always work in nginx?

I'm trying to block the data centers from which the left requests to the site come, but for some reason nginx sometimes skips ip addresses. For example:
IP 64.225.1.172 DigitalOcean I
registered in the configuration

server {
include /etc/nginx/snippets/deny-ds.conf;
...
location / {
...
}

include /etc/nginx/snippets/deny-ds.conf;
...
deny 64.225.0.0/20;
...


Most blocks, but not all.
Likewise, cloudflare allows the same China to enter the site, although it states in the rules that everything except Russia is blocked.
How to block unwanted people in such a situation?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
ky0, 2022-04-06
@ky0

Wang, which is somewhere return, who doesn’t give a denydamn.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question