Security

Stop attacks before they reach your code.

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
}
πŸ”’ Application Security

What you get

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.

Firewall (WAF)

Blocks SQL injection, XSS, path traversal, Log4Shell, command injection and probes for secret files. Start in "log" mode to see what it would catch.

Bot checks

"challenge" asks browsers for a quick proof of work that scripts can’t do. "block" refuses automation tools outright.

IP rules

Block addresses or ranges, or allow only your own, with CIDR for IPv4 and IPv6.

Secure headers & TLS

HSTS, nosniff, frame and referrer policies added for you; every address gets HTTPS automatically.

Security log

lyrcloud security log shows what was blocked or logged, by rule, path and IP. Country rules are coming soon.

Works with the rest of Lyrcloud

🌐

Domains

Register or transfer a domain with free WHOIS privacy and Lyrcloud DNS, paid by card or with Lyrpay.

Learn more
⚑

Global CDN

Response caching, static files and whole static sites for your edge functions, with cache headers you control and purges from the CLI.

Learn more
{}

Edge Functions

Deploy JavaScript fetch handlers from the lyrcloud CLI. Each function runs in its own isolated sandbox and goes live at https://<name>.dev.lyr.

Learn more

Try Application Security free.

Create a free account in under a minute. No credit card required.