Nginx Rate Limiting for WordPress Login and REST API Endpoints
Nginx rate limiting for the WordPress login, XML-RPC and the REST API A brute-force attack on wp-login.php is mainly a load problem: every attempt starts PHP, loads WordPress and checks a password hash, which is deliberately slow. A security plugin blocks the attacker only after all that work is done. Nginx can limit the request…