Allow Without Deny¶
Gixy Check ID: allow_without_deny
When a configuration block contains allow directive with some IP address or subnet, it most likely should also contain deny all; directive (or it should be enforced somewhere else).
Otherwise, there's basically no access limitation.
Bad Example¶
location / {
root /var/www/;
allow 10.0.0.0/8;
. . .
}
Catch this before it reaches production
GetPageSpeed Amplify runs Gixy on a schedule across every NGINX host and alerts you on new findings and CVEs, alongside runtime metrics. Set up continuous monitoring.
Good Example¶
location / {
root /var/www/;
allow 10.0.0.0/8;
deny all;
. . .
}