Introduction
When many users visit a website at the same time, the server can get overwhelmed and slow down or crash. Nginx has tools called limit_req_zone and limit_req that help control how many requests each user can make in a short time. This keeps the server stable and fair for everyone.
When you want to stop one user from sending too many requests and slowing down your website.
When you want to protect your server from simple attacks that flood it with requests.
When you want to make sure your website stays fast even if many people visit at once.
When you want to limit API usage per user to avoid abuse.
When you want to control traffic from certain IP addresses to prevent overload.