Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nginx-clojure/nginx-access-plus
nginx module allows limiting access to certain http request methods and client addresses.
https://github.com/nginx-clojure/nginx-access-plus
Last synced: 7 days ago
JSON representation
nginx module allows limiting access to certain http request methods and client addresses.
- Host: GitHub
- URL: https://github.com/nginx-clojure/nginx-access-plus
- Owner: nginx-clojure
- License: bsd-3-clause
- Created: 2015-07-18T09:40:03.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2024-08-10T08:04:20.000Z (3 months ago)
- Last Synced: 2024-08-10T09:22:50.763Z (3 months ago)
- Language: C
- Homepage:
- Size: 5.86 KB
- Stars: 12
- Watchers: 5
- Forks: 7
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-nginx - nginx-access-plus - nginx module allows limiting access to certain http request methods and client addresses. (Third Party Modules / C Modules)
README
Nginx-Access-Plus
=============Nginx-Access-Plus is a [Nginx](http://nginx.org/) module allows limiting access to certain http request methods and client addresses.
Installation
=================```shell
#If nginx source is checked out from hg, please replace ./configure with auto/configure
$./configure \
--add-module=nginx-access-plus/src/c
$ make
$ make install
```User Guide
=================Only Allow GET and HEAD Requests
-----------------```nginx
location / {
allow_method all get|head;
deny_method all all;
}
```All GET|HEAD Requests But Deny All POST|DELETE Requests Except for 192.168.1.*
-----------------```nginx
location / {
allow_method all get|head;
allow_method 192.168.1.0/24 post|delete;
deny_method all all;
}
```Deny POST|PUT|DELETE Requests from 192.168.1.*
-----------------```nginx
location / {
deny_method 192.168.1.0/24 post|put|delete;
}
```License
=================
Copyright © 2015 Zhang, Yuexiang (xfeep) and released under the BSD 3-Clause license.