feat: Adiciona security_actions e ativa bloqueio no vHost
This commit is contained in:
parent
af1ff377d3
commit
07bea3b949
|
|
@ -48,6 +48,7 @@ server {
|
||||||
include snippets/proxy_params.conf;
|
include snippets/proxy_params.conf;
|
||||||
include snippets/modsecurity.conf;
|
include snippets/modsecurity.conf;
|
||||||
include snippets/well_known.conf;
|
include snippets/well_known.conf;
|
||||||
|
include snippets/security_actions.conf;
|
||||||
|
|
||||||
# --- Certificados ---
|
# --- Certificados ---
|
||||||
ssl_certificate /etc/letsencrypt/live/ferreirareal.com.br/fullchain.pem;
|
ssl_certificate /etc/letsencrypt/live/ferreirareal.com.br/fullchain.pem;
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,5 @@
|
||||||
|
# Security Actions
|
||||||
|
# Bloqueio imediato baseado no security_maps.conf
|
||||||
|
if ($block_request) {
|
||||||
|
return 444; # Fecha a conexão sem resposta (mais agressivo) ou 403/404
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue