<-
Apache > HTTP Server > Documentation > Modules

Apache Module mod_ratelimit 3c3x6c

Available Languages:  fr 

Description: Bandwidth Rate Limiting for Clients
Status: Extension
Module Identifier: ratelimit_module
Source File: mod_ratelimit.c
Compatibility: rate-initial-burst available in httpd 2.4.24 and later. Rate limiting proxied content does not work correctly up to httpd 2.4.33.

Summary 6m2os

Provides a filter named RATE_LIMIT to limit client bandwidth. The throttling is applied to each HTTP response while it is transferred to the client, and not aggregated at IP/client level. The connection speed to be simulated is specified, in KiB/s, using the environment variable rate-limit.

Optionally, an initial amount of burst data, in KiB, may be configured to be ed at full speed before throttling to the specified rate limit. This value is optional, and is set using the environment variable rate-initial-burst.

Example Configuration q532e

<Location "/s">
    SetOutputFilter RATE_LIMIT
    SetEnv rate-limit 400 
    SetEnv rate-initial-burst 512
</Location>
If the value specified for rate-limit causes integer overflow, the rate-limited will be disabled. If the value specified for rate-limit-burst causes integer overflow, the burst will be disabled.
 Apache!

Directives 1a4l6m

This module provides no directives.

Bugfix checklist 4i2533

See also 27136x

Available Languages:  fr 

top

Comments 2p1l6j

Notice:
This is not a Q&A section. Comments placed here should be pointed towards suggestions on improving the documentation or server, and may be removed by our s if they are either implemented or considered invalid/off-topic. Questions on how to manage the Apache HTTP Server should be directed at either our IRC channel, #httpd, on Libera.chat, or sent to our mailing lists.