Rate limiting
Requests per visitor per path, per 10 s, 1 m, 10 m or 1 h. Over the limit gets 429 with Retry-After.
Rate limits, IP rules, a firewall for common attacks, bot checks and secure headers for your edge functions, set in lyrcloud.json and enforced before your code runs.
// lyrcloud.json
"security": {
"rateLimits": [{ "path": "/api", "requests": 100, "per": "1m" }],
"waf": "block",
"bots": { "mode": "challenge", "paths": ["/login"] },
"blockIps": ["203.0.113.0/24"],
"headers": true
}
Requests per visitor per path, per 10 s, 1 m, 10 m or 1 h. Over the limit gets 429 with Retry-After.
Blocks SQL injection, XSS, path traversal, Log4Shell, command injection and probes for secret files. Start in "log" mode to see what it would catch.
"challenge" asks browsers for a quick proof of work that scripts canβt do. "block" refuses automation tools outright.
Block addresses or ranges, or allow only your own, with CIDR for IPv4 and IPv6.
HSTS, nosniff, frame and referrer policies added for you; every address gets HTTPS automatically.
lyrcloud security log shows what was blocked or logged, by rule, path and IP. Country rules are coming soon.
Register or transfer a domain with free WHOIS privacy and Lyrcloud DNS, paid by card or with Lyrpay.
Learn moreResponse caching, static files and whole static sites for your edge functions, with cache headers you control and purges from the CLI.
Learn moreDeploy JavaScript fetch handlers from the lyrcloud CLI. Each function runs in its own isolated sandbox and goes live at https://<name>.dev.lyr.
Learn moreCreate a free account in under a minute. No credit card required.