{"id":18773900,"url":"https://github.com/ejunjsh/nginx_module_ratelimiter","last_synced_at":"2025-12-14T02:30:17.950Z","repository":{"id":109691049,"uuid":"162067132","full_name":"ejunjsh/nginx_module_ratelimiter","owner":"ejunjsh","description":"🍩 a nignx http module that limits request number","archived":false,"fork":false,"pushed_at":"2019-07-12T00:49:37.000Z","size":11,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2024-12-29T08:41:56.457Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ejunjsh.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-12-17T03:05:18.000Z","updated_at":"2022-11-11T10:56:29.000Z","dependencies_parsed_at":"2023-03-13T14:05:05.349Z","dependency_job_id":null,"html_url":"https://github.com/ejunjsh/nginx_module_ratelimiter","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ejunjsh%2Fnginx_module_ratelimiter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ejunjsh%2Fnginx_module_ratelimiter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ejunjsh%2Fnginx_module_ratelimiter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ejunjsh%2Fnginx_module_ratelimiter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ejunjsh","download_url":"https://codeload.github.com/ejunjsh/nginx_module_ratelimiter/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239680985,"owners_count":19679509,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-07T19:36:13.441Z","updated_at":"2025-12-14T02:30:17.907Z","avatar_url":"https://github.com/ejunjsh.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# nginx_module_ratelimiter\n\na nignx http module that limits request number\n\n## precondition\n\ndownload the nginx source code\n\n## configure\n\n    # git clone this repo\n    # go to the nginx source code folder\n    # specify this repo path of your system\n    ./configure --add-module=/home/sky/code/nginx_module_ratelimiter\n\n## build\n\n    make \u0026\u0026 make install\n\n## nginx.conf\n\n    # add below ratelimiter option into http section:ratelimiter [expired time(ms)] [slab size(m/k/g)]\n    http {\n        ....\n        ratelimiter 500 10m; \n        ....\n    }\n    # expired time means all requests have a expired time,when there is a unexpired request,a same request is coming, this new request will be dropped and return 403.\n    # slab size represets the total memory that store the all unexpired requests, \n    # if this memory is run out, the nginx will drop the following requests and return 403.\n    # if the requests in slab memory expire, the memory will be released and treats the new requests again.\n\n## test\n\n    ./nginx\n\nopen http://localhost , you will see the `403 Forbidden` in the browser when you refresh the same page many times during 500ms\n\n## reference\n\n[深入理解Nginx（第2版）](https://book.douban.com/subject/26745255/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fejunjsh%2Fnginx_module_ratelimiter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fejunjsh%2Fnginx_module_ratelimiter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fejunjsh%2Fnginx_module_ratelimiter/lists"}