Update default
This commit is contained in:
+13
-1
@@ -4,13 +4,25 @@ server {
|
|||||||
index index.html;
|
index index.html;
|
||||||
server_name localhost;
|
server_name localhost;
|
||||||
|
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
|
SecRulesEnabled;
|
||||||
|
LearningMode;
|
||||||
|
DeniedUrl "/denied/";
|
||||||
|
CheckRule "$SQL >= 8" BLOCK;
|
||||||
|
CheckRule "$RFI >= 8" BLOCK;
|
||||||
|
CheckRule "$TRAVERSAL >= 4" BLOCK;
|
||||||
|
CheckRule "$EVADE >= 4" BLOCK;
|
||||||
|
CheckRule "$XSS >= 8" BLOCK;
|
||||||
|
|
||||||
access_log /hostdata/default/logs/access.log main;
|
access_log /hostdata/default/logs/access.log main;
|
||||||
error_log /hostdata/default/logs/error.log;
|
error_log /hostdata/default/logs/error.log;
|
||||||
|
|
||||||
try_files $uri $uri/ =404;
|
try_files $uri $uri/ =404;
|
||||||
}
|
}
|
||||||
|
location /denied/ {
|
||||||
|
return 444;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
location ~ \.php {
|
location ~ \.php {
|
||||||
try_files $uri /index.php =404;
|
try_files $uri /index.php =404;
|
||||||
|
|||||||
Reference in New Issue
Block a user