Blocking xmlrpc.php and wp-config.php in nginx-rate-limit templatre for WP

This commit is contained in:
myvesta 2024-03-29 14:51:56 +01:00 committed by GitHub
commit dd18d6dd6d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 6 additions and 0 deletions

View file

@ -79,6 +79,8 @@ server {
proxy_pass https://%ip%:%web_ssl_port%;
}
location ~ /wp-config.php {return 404;}
location ~ /xmlrpc.php {return 404;}
location ~ /\.ht {return 404;}
location ~ /\.env {return 404;}
location ~ /\.svn/ {return 404;}

View file

@ -79,6 +79,8 @@ server {
proxy_pass https://%ip%:%web_ssl_port%;
}
location ~ /wp-config.php {return 404;}
location ~ /xmlrpc.php {return 404;}
location ~ /\.ht {return 404;}
location ~ /\.env {return 404;}
location ~ /\.svn/ {return 404;}

View file

@ -76,6 +76,8 @@ server {
proxy_pass http://%ip%:%web_port%;
}
location ~ /wp-config.php {return 404;}
location ~ /xmlrpc.php {return 404;}
location ~ /\.ht {return 404;}
location ~ /\.env {return 404;}
location ~ /\.svn/ {return 404;}