VergeCloud Rate Limiting Config Guide for Developers

How to Configure Rate Limiting in VergeCloud

Rate limiting is a fundamental security and traffic management feature that helps maintain the stability and reliability of modern web applications and APIs. In VergeCloud, you can control how many requests can be made within a specific time frame, protecting your system from abuse, sudden traffic spikes, and automated attacks. This guide explains how rate limiting works in VergeCloud, how to configure rules effectively, and how to use its features to keep your services secure and performant.

Why Rate Limiting Is Important

Rate limiting is one of those behind-the-scenes controls that quietly keeps your system healthy. Think of it as a safety buffer that helps you stay in control when traffic becomes unpredictable. Without any limits in place, even a small surge intentional or accidental can slow things down or bring your servers to a halt. Here’s what it protects you from:

• DDoS or DoS attacks
When attackers flood your application with an unusually high number of requests, the goal is simple, overwhelm your backend. By enforcing rate limits, you can keep such attacks contained and prevent them from taking down your services.

• Brute-force attempts
Login pages, contact forms, and authentication APIs are common targets for bots trying thousands of combinations. With rate limiting, you can stop these attacks early by restricting repeated attempts from the same source.

• Sudden traffic spikes
Even genuine users sometimes cause unexpected traffic bursts maybe due to a sale, a viral link, or internal testing. Without limits, these spikes can overload your system. A rate limit helps spread the load so your servers stay stable.

• API misuse or overconsumption
Some users might unintentionally (or deliberately) make excessive API calls, consuming more resources than they should. Proper limits ensure everyone gets a fair share without affecting overall performance.
By putting well-defined thresholds in place, you create a controlled environment where the application runs smoothly, abusive traffic is filtered out, and legitimate users can interact with your service without interruptions. It’s a simple mechanism, but it plays a huge role in keeping your platform fast, stable, and secure.

Rate Limit Configuration in VergeCloud

Rate Limit Configuration in Verge Cloud

To configure rate limits in VergeCloud:
  1. Go to Security → Rate Limit Rules
  2. Click Add Rule to create a new policy
Each rule you create allows control over how traffic behaves.

Configuring Rate Limiting Rules in VergeCloud

URL Path

Specify where the rule applies.
Supports glob patterns like: 

/api/*
/login/**
/checkout/*

Number of Requests

This defines how many requests an IP can send before triggering the limit.

Time Frame

Choose how long the system will measure requests:
Seconds
Hours
Days

Excluded Methods

Exclude specific HTTP methods such as GET, POST, or PUT if you want the rule to apply only to certain request types.

Excluded IPs

Add internal IPs or trusted partners so they are never limited. This is useful for monitoring tools, office IPs, or API partners.

After you finish filling in the fields, click Save to activate the rule.

VergeCloud Rate Limiting Response Behavior

When a request goes beyond the allowed threshold, VergeCloud reacts in one of two ways:

Block : The system stops further requests until the time frame resets.
Challenge : Instead of blocking immediately, the system presents a validation challenge (like a Captcha or cookie-based verification). This is useful when you want to stop bots but still give legitimate users a chance.
Both options are helpful depending on how strict you want your protection to be.

VergeCloud Rate Limiting Example Scenario

You can limit access to a specific endpoint such as: www.example.com/api/contact/form → 20 requests per day
If this threshold is exceeded, the IP will be blocked for 24 hours.
You can exclude trusted IPs (like 1.2.3.4) or allow only specific methods (e.g., POST).

Rate Limit Rule Priority in VergeCloud

VergeCloud evaluates rate limit rules based on priority, starting with the highest priority (priority 1).
Once a request matches a rule, lower-priority rules are ignored.

Example :

Path
Requests
Time Frame
Priority
/api/login/**

5
60 seconds
1
/api/**
10
60 seconds
2

This ensures tighter control for login endpoints while keeping general API traffic more flexible.

How to Optimize Rate Limiting in VergeCloud 

  1. Define Clear Conditions – Apply rate limits to specific URLs, HTTP methods, or IPs for better control.
  1. Use Multiple Rules – Set stricter limits for sensitive routes (like /login) and more lenient ones for general traffic.Combine Short and Long Time Windows.
  1. Use short windows to stop sudden bursts and longer windows to control sustained traffic
    Let’s say your login API endpoint is often targeted by bots.
    You can apply two rules together:
    Rule 1: 5 requests per 10 seconds — stops rapid brute-force attempts.
    Rule 2: 100 requests per 10 minutes — limits consistent automated traffic over tim
    This combination helps block both spikes and steady abuse without affecting genuine users who log in occasionally
  1. Monitor and Adjust - Review logs and traffic behavior to fine-tune thresholds for optimal balance between security and usability

Testing and Validating Rate Limits

To verify your rate limit setup:
1. Use curl to simulate repeated requests and check for HTTP 429 (Too Many Requests) responses.
2. Visit the configured path in a browser to confirm whether it’s blocked or challenged when limits are reached.
3. Optionally use dig for DNS-related rate limit checks if applicable

Rate limiting is a simple but essential layer of protection that helps keep your VergeCloud applications stable, secure, and fair for all users. By properly configuring rules, prioritising sensitive endpoints, and continuously monitoring traffic behaviour, you can effectively prevent abuse while maintaining smooth performance for legitimate requests.
    • Related Articles

    • Custom Error Pages in VergeCloud: Enhance User Experience

      The Custom Pages feature in VergeCloud global CDN allows you to personalize the experience your users see whenever your website encounters service interruptions, maintenance periods, or protective security challenges. Instead of showing default ...
    • How to Handle Rate Limiting Issues and Optimize Rules in VergeCloud

      At VergeCloud, rate limit capabilities are designed to help customers protect their applications from abuse, ensure fair usage, and maintain consistent performance even during traffic spikes. Our edge driven architecture allows rate limit enforcement ...
    • How to Configure Load Balancing on VergeCloud: Step by Step

      VergeCloud’s Load Balancer intelligently manages and distributes incoming traffic across multiple origin servers, providing seamless multi-cloud load balancing. This ensures high availability, stable performance, and consistently low response times ...
    • Enable, Configure, and Test DNS Load Balancing on VergeCloud

      The VergeCloud DNS Load Balancer provides an intelligent and scalable way to distribute incoming traffic across multiple origin servers linked to your domain or subdomains. By choosing the appropriate load balancing method such as Round Robin, ...
    • Using Layer 4 Network on VergeCloud

      Overview The VergeCloud Layer 4 Proxy enhances security and performance for applications using TCP protocol. It is ideal for non-HTTP traffic such as email, FTP, SSH, VoIP, or gaming. By proxying connections through VergeCloud’s edge, your origin ...