Skip to content

Instantly share code, notes, and snippets.

@lukecav
Last active May 3, 2023 10:41
Show Gist options
  • Save lukecav/405858c6fea88c0127a2624b4e04347e to your computer and use it in GitHub Desktop.
Save lukecav/405858c6fea88c0127a2624b4e04347e to your computer and use it in GitHub Desktop.
Rate limit the wp-login.php using NGNIX
http {
limit_req_zone $binary_remote_addr zone=mylimit:10m rate=10r/s;
server {
location /wp-login.php {
limit_req zone=mylimit burst=20 nodelay;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment