Rate Limiting

Speed limitation, API throttling, Throttling, Request limitation, Request limiting, Request limitation
Rate limiting limits the number of requests a user or system is allowed to send to your server within a certain amount of time. It protects your infrastructure from overload and abuse.

What is Rate Limiting?

Rate limiting is a technique that limits the number of requests (requests) a user, IP address or API client can send to your server within a certain period of time. Imagine your online shop allows 100 requests per minute per user. Does someone send request number 101? Then that person gets an error message or a wait time. For SMEs with a website, online shop or API connection, this is the digital gatekeeper that prevents your server from crashing due to overload, bots or malicious users.

How rate limiting works in practice

A rate limiter keeps track of how many requests a specific resource (e.g. an IP address, API key or logged-in user) makes within a time window. This time window can be a second, minute or hour. Common strategies include the token bucket algorithm, where each user is given a 'bucket' of tokens that is slowly refilled, and the sliding window principle, which keeps track of a sliding average. Once the limit is reached, the system temporarily blocks new requests or slows down the response. In a professional web development environment, you often configure this via the web server (such as Nginx or Apache), a CDN or within the application code itself.

Why rate limiting became essential for modern websites

Rate limiting emerged in the early years of API economics, when services such as Twitter and Google noticed that uncontrolled usage could cripple their infrastructure. A single bot firing thousands of requests per second could cripple a server as effectively as a DDoS attack. This is still relevant for Dutch online shops and SaaS platforms: credential stuffing attacks, competitor scraping and unintentional loops in external links occur daily. Rate limiting is therefore not a luxury but a basic protection, similar to authentication and authorisation.

What rate limiting brings to your company

For an SME online shop with 5,000 visitors a day, rate limiting prevents a single bot from calling your checkout page 10,000 times a minute, overloading your hosting. For a B2B platform with API links to customers, it protects you from unintentional loops in external software unnecessarily taxing your server. It also helps with fair distribution: no single user can claim all available capacity. In practice, we often see with WordPress hosting projects that rate limiting at server level improves uptime and lowers costs, as you need less overhead for peak load. According to Google Developers, rate limiting also helps control crawl budget so that search engines index your site more efficiently.

Applications of Rate Limiting

Rate limiting is not an abstract technique for big tech companies. Dutch SMEs with a website, online shop or API also benefit from smart limiting on a daily basis. Below are four concrete situations in which rate limiting makes the difference between a stable service and an overloaded server.

Protecting login pages from brute force attacks

A common attack is credential stuffing: criminals try thousands of username and password combinations on your login page. Without rate limiting, a bot can make millions of attempts in a matter of minutes. With rate limiting, you limit, for example, to five login attempts per IP address per minute. After the fifth attempt, the user gets a 15-minute temporary block. For legitimate users, this is hardly noticeable, but for attackers it becomes economically unfeasible. In practice, we find with customers that this simple measure stops 99% of brute force attempts, without affecting real visitors. Combine this with two-factor authentication for an extra layer of protection.

Fair distribution of API capacity for external links

Suppose you have an online shop with an API that allows external systems (such as an ERP or marketing automation tool) to retrieve product data. Without rate limiting, one customer with an incorrect configuration could flood your API with requests and thus delay other customers. By setting a limit of, say, 1,000 requests per hour per API key, you guarantee fair distribution. This is especially relevant for B2B platforms and SaaS services. You communicate the limit upfront in your API documentation, so developers can configure their integrations accordingly. At Monkey Vision , we often configure this via API links with tools like n8n, setting rate limiting at both ends: at source and destination.

Preventing scraping by competitors or bots

Online shops and comparison sites are regularly scrapped by competitors who automatically collect prices and product information. A scraper can request hundreds of pages in a short period of time, taxing your server and undermining your competitive advantage. Rate limiting based on IP address or user-agent limits this: for example, a maximum of 60 pages per minute per IP. Legitimate visitors never reach this, but a scraper is slowed down immediately. Note that limits that are too strict can also hamper Google bots. According to Google's crawler documentation, a limit of 1 request per second is safe for most sites. Combine rate limiting with a robots.txt and monitoring to find the balance.

Stability of checkout and payment pages during peaks

Black Friday, a product launch or a viral social media post can suddenly send thousands of visitors to your online shop. Without rate limiting, your checkout process can get stuck because too many sessions are created at once. By putting rate limiting on critical endpoints (such as creating a shopping cart or starting a payment), you prevent your infrastructure from getting overloaded. For example, you can allow 10 checkout-starts per minute per session, which is more than enough for normal users but prevents bots or bugs from crippling your system. Combined with professional online shop development and scalable hosting, you also keep control during peaks.

When rate limiting is the right choice and when it is not

Rate limiting makes sense as soon as your website, API or online shop has to deal with automated traffic, external links or a growing number of users. It is not overkill for small sites: even a simple WordPress site benefits from basic protection against login attempts. However, you do need to be careful with overly strict limits on public pages: if your homepage only allows 10 requests per minute per IP, users behind a shared corporate network or VPN may block each other. Therefore, always test with realistic scenarios and monitor your logs. For sites with little dynamic interaction (e.g. a simple portfolio site with no login), you can limit rate limiting to specific endpoints such as contact forms.

Want to apply this in your company? Monkey Vision helps SME entrepreneurs with web design, SEO and smart digital solutions. Plan a no-obligation discovery call and discover what is possible for you.

Plan a discovery call

Frequently asked questions

No, rate limiting and a firewall are complementary layers of security with different purposes. A firewall blocks traffic based on origin, protocol or known threats, while rate limiting limits the frequency of requests, regardless of the source. You can have a trusted IP address that gets through the firewall, but if that address makes too many requests, rate limiting intervenes. In practice, you combine both: the firewall stops malicious traffic, and rate limiting prevents legitimate but overactive users or bugs from overloading your server. So for optimal security of your website or API, you need both, complemented by authentication and monitoring.

It depends on your traffic pattern and risk profile. For an online shop with mainly Dutch visitors, a limit of 100 to 200 requests per minute per IP address is often sufficient for product pages, and 5 to 10 for login and checkout pages. Do you have an API for external links? Then use per-key limits of 1,000 to 5,000 requests per hour, depending on your infrastructure. Start conservatively and monitor your access logs: do you see legitimate users hitting the limit? Then increase gradually. Do you see a lot of blocked bots? Lower the limit for specific endpoints. When in doubt, a professional hosting setup with built-in rate limiting and real-time monitoring will help you find the right balance without trial-and-error on your live environment.

The most common mistake is too strict limits on public pages, causing users behind a shared IP address (such as an office network or mobile provider) to block each other. A second pitfall is applying rate limiting without clear error messages: visitors get a generic 429-error with no explanation or alternative. Always indicate when the limit resets. A third mistake is setting rate limiting but never monitoring it: you then don't know whether legitimate users are suffering or whether bots are still breaking through. Solve this by setting up logging and alerting, for instance through your hosting provider or a tool like Google Analytics. Finally, don't forget to exclude your own systems (such as monitoring tools or backup services), otherwise you block yourself. Always test with realistic scenarios before going live.

The best approach depends on your current infrastructure and risks. Are you running a WordPress site or online shop and want basic security quickly? Then start with rate limiting on login pages and forms via a plugin or your hosting provider. Do you have a bespoke application or API? Configure rate limiting at server level (Nginx, Apache) or within your application code. Not sure where to start or what limits are realistic? Then schedule a free 30-minute security scan with Monkey Vision. We will walk through your current setup, identify vulnerable endpoints and immediately give you three concrete areas for improvement that you can implement this week. No sales pitch, just practical advice tailored to your situation. Contact us via our web development page to schedule an appointment.

About the author

Monkey Vision

Monkey Vision is a full-service digital agency based in London, specialising in web design agency, SEO and AI automation for SMEs. The knowledge base is compiled by our team of online strategists and continuously updated based on current insights.

Publication date: 26-04-2026
Last update: 26-04-2026