Rate limiting rule not working

I’ve set a rate limiting rule: If Traffic Matching the URL http https dbmotori.it/ (I’ve tried also with .dbmotori.it/) from the same IP address exceeds 10 requests per 10 seconds then block matching traffic from that visitor for 1 hour. AFter setting the rule I tried to exceed the limit but nothing happens, no block. What is wrong?

That’s a pretty narrow window of time for ten requests. How did you test it? When I try ‘curl’, the response time isn’t quick enough for me to hit the site ten times in ten seconds.

appears to work for me

for i in {1..20}; do curl  -svo /dev/null https://yourdomain.it 2>&1 |grep "< HTTP/2"; echo $i  ; done
< HTTP/2 200
1
< HTTP/2 200
2
< HTTP/2 200
3
< HTTP/2 200
4
< HTTP/2 200
5
< HTTP/2 200
6
< HTTP/2 200
7
< HTTP/2 200
8
< HTTP/2 200
9
< HTTP/2 200
10
< HTTP/2 200
11
< HTTP/2 200
12
< HTTP/2 429
13
< HTTP/2 429
14
< HTTP/2 429
15
< HTTP/2 429
16
< HTTP/2 429
17
< HTTP/2 429
18
< HTTP/2 429
19
< HTTP/2 429
20
2 Likes

This topic was automatically closed after 30 days. New replies are no longer allowed.