Add mime.types template and xmlrpc.php rate limiter

This commit is contained in:
VirtuBox
2019-09-02 12:20:20 +02:00
parent c7712ae6dd
commit e0ae643b84
4 changed files with 112 additions and 0 deletions

View File

@@ -6,6 +6,18 @@ location = /wp-login.php {
include fastcgi_params;
fastcgi_pass {{upstream}};
}
# Prevent DoS attacks on wp-cron
location = /wp-cron.php {
limit_req zone=two burst=1 nodelay;
include fastcgi_params;
fastcgi_pass {{upstream}};
}
# Prevent Dos attacks with xmlrpc.php
location = /xmlrpc.php {
limit_req zone=two burst=1 nodelay;
include fastcgi_params;
fastcgi_pass {{upstream}};
}
# Disable wp-config.txt
location = /wp-config.txt {
deny all;