http-access-plus #
Nginx-Access-Plus is a Nginx module allows limiting access to certain http request methods and client addresses.
Source: upstream source
Directives
allow_method #
syntax: allow_method 2 args; · context: http, server, location, limit_except
Permits requests using the specified HTTP methods from a given client address or all addresses.
deny_method #
syntax: deny_method 2 args; · context: http, server, location, limit_except
Blocks requests using the specified HTTP methods from a given client address or all addresses.
Example
location / {
allow_method all get|head;
allow_method 192.168.1.0/24 post|delete;
deny_method all all;
}