Rate Limiting
The Rate Limiting feature in the Medianova Cloud Panel provides a robust mechanism to control incoming traffic volume, protect your resources from abuse, and optimize overall system performance. By defining request limits and actions, you can effectively manage excessive requests, ensure fair usage, and maintain stability for your CDN services.
Rate Limiting allows you to restrict the number of requests made to your CDN resource within a specified time window (seconds or minutes). It is particularly useful for:
Preventing abuse: Protect resources from malicious traffic or bots.
Traffic optimization: Ensure fair access by limiting excessive requests from individual clients.
Resource protection: Reduce the load on your origin servers and avoid unnecessary bandwidth consumption.
The feature also supports additional actions, IP whitelisting, and configurable HTTP status codes to manage traffic behavior efficiently.
Key Features
Customizable Request Limits
Define the number of requests allowed within a time window:
Seconds: Fine-tune request limits for short intervals.
Minutes: Broader control for longer time windows.
Rate Limit Options
Configure the behavior of rate limits:
Burst + No Delay: Allows an initial burst of requests without any delays, ensuring immediate responsiveness.
Burst: Allows a burst of requests but applies delays or throttling once the threshold is exceeded.
None: Disables burst handling and enforces a strict limit.
IP Whitelisting
Enable the Whitelist IP Status to exclude specific IP addresses from Rate Limiting rules. This is useful for trusted clients or internal testing purposes.
Configurable HTTP Status Codes
Choose the response status code when the rate limit is exceeded:
429 Too Many Requests: Indicates the client has sent too many requests within the time window.
529 Site Overloaded: Used when the server is unable to process requests due to excessive load.
Action Management (Dynamic CDN Only)
Define actions for excessive requests:
Block: Reject requests that exceed the rate limit.
Challenge: Present a challenge (e.g., CAPTCHA) to validate whether the client is legitimate.
How to Configure Rate Limiting
Follow these steps to configure Rate Limiting for your CDN resources in the Medianova Cloud Panel:
Access the Configuration
Log in to the Medianova Cloud Panel.
Click on the CDN Resources section in the left-hand menu.
Select the relevant resource you want to configure.
Navigate to the Security tab.
Scroll down to the Rate Limiting section.
Enable Rate Limiting
Locate the Status option.
Toggle the Status to On to activate the Rate Limiting feature.
Set Request Limits
Under the Request Limit section:
Specify the maximum number of requests allowed per second or minute.
Adjust these values based on your traffic volume and server capacity.
Configure Rate Limit Options
Select a Rate Limit Option from the following:
Burst + No Delay: Allows a temporary spike in requests with no initial delay.
Burst: Allows a burst of requests but applies throttling afterward.
None: Disables burst handling, enforcing a strict rate limit.
If Burst or Burst + No Delay is selected, enter a Burst Value to define the threshold for the burst limit.
Whitelist IPs (Optional)
To exclude specific IP addresses from Rate Limiting:
Toggle the Whitelist IP Status to On.
Add the trusted IP addresses to the whitelist.
This ensures that trusted clients or internal traffic are not affected by rate limits.
Set Status Codes
Choose the HTTP status code to be returned when the rate limit is exceeded:
429 Too Many Requests
529 Site Overloaded
Define Actions (Dynamic CDN Only)
Under the Actions section, select one of the following options:
Block: Deny requests that exceed the rate limit.
Challenge: Present a challenge (e.g., CAPTCHA) to validate the request.
Save Your Configuration
Click the Submit button to save your changes.
The Rate Limiting rules will now be applied to your selected resource.
Last updated