http-access-plus #
Allows or denies requests by HTTP method and client address, for example only GET and HEAD from the internet. Use it to keep write methods such as POST or DELETE open to trusted networks only.
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;
}