{"repo":"limithit/ngx_dynamic_limit_req_module","free":true,"listed":false,"github":"https://github.com/limithit/ngx_dynamic_limit_req_module","clone":"git clone https://github.com/limithit/ngx_dynamic_limit_req_module.git","description":"The ngx_dynamic_limit_req_module module is used to dynamically lock IP and release it periodically.","language":"C","stars":98,"topics":["nginx","redis","nginx-module","c","api-count","real-time","pv-uv","timing","defense","web"],"license":"GPL-3.0","category":"databases-storage","readme_excerpt":"# ngx dynamic limit req module Introduction The ngx dynamic limit req module module is used to dynamically lock IP and release it periodically. Table of Contents ================= dynamic limit req zone dynamic limit req redis dynamic limit req dynamic limit req log level dynamic limit req status black-and-white-list principle Pre-built Packages (Ubuntu / Debian) Installation About Donate Extend Api-count dynamic limit req zone Sets parameters for a shared memory zone that will keep states for various keys. In particular, the state stores the current number of excessive requests. The key can contain text, variables, and their combination. Requests with an empty key value are not accounted. dynamic limit req redis Sets optional parameters, unix socket, port, requirepass. The socket must be accessible for nginx . You first have to change the chmod of the socket to 770 that the redis group can access it, make changes in /etc/redis/redis.conf : unixsocketperm 770 unixsocket /tmp/redis.sock and then add nginx to the redis group usermod -g redis nginx example: or required for non-standard ports, not required for standard port 6379 dynamic limit req Sets the shared memory zone and the maximum burst size of requests. If the requests rate exceeds the rate configured for a zone, their processing is delayed such that requests are processed at a defined rate. Excessive requests are delayed until their number exceeds the maximum burst size in which case the request is terminated with an e","default_branch":null,"files":null,"tree":[],"storefront":"/r/limithit","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/limithit/ngx_dynamic_limit_req_module/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}