Skip to content

Commit

Permalink
Better security in ratelimit conf
Browse files Browse the repository at this point in the history
  • Loading branch information
gagan0123 committed Sep 18, 2019
1 parent 64b5aa5 commit 06dacba
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion configs/nginx-common/ratelimit.conf
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
# Limit access to avoid brute force attack
location = /wp-login.php {
location ~* ^/wp-login.php {
limit_req zone=login burst=10 nodelay;
include fastcgi.conf;
fastcgi_pass $fpmpool;
}
location ~* ^/wp-admin/admin-ajax.php$ {
allow all;
}
location ~* ^/wp-admin/.*\.php {
limit_req zone=admin burst=10 nodelay;
include fastcgi.conf;
fastcgi_pass $fpmpool;
}

0 comments on commit 06dacba

Please sign in to comment.