Welcome! Log In Create A New Profile

Advanced

How to set a max access times within a limited time?

Anonymous User
July 13, 2010 05:20AM
I want to limit access to certain resources base on following rules:

1. each ip can only access the resources 333 times a day (or within
the last 24 hrs)

2. no more than X simultaneous connections and no more than Xr/s

Currently, nginx can handle rule 2 with the limit zone module.
http://wiki.nginx.org/NginxHttpLimitZoneModule

location /resource {
limit_conn gullag 1;
limit_req zone=qincheng burst=1;
}

How do I go about rule 1? Thank you!


_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx
Subject Author Posted

How to set a max access times within a limited time?

Anonymous User July 13, 2010 05:20AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 172
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready