rule_00 · Firewall Live
Write the rule. We enforce it.
if path starts_with "/admin" challenge
Allow, challenge, block or rate-limit traffic by IP, country, port, path or method. The edge applies it before anything reaches your origin.
7-day trial · card required · cancel before day 7 and pay nothing
Ifcountry is notHK
andpath starts with/login
thenrate-limit10 per minute
Every rule is one sentence.
A rule matches on what a request is and where it comes from, then takes one action. Nothing else to learn.
- if
countryfieldinoperator["HK", "SG"]valueand …more conditions- then
blockaction
| Field | Game servers | Websites | Example |
|---|---|---|---|
| Source IP or CIDR | Yes | Yes | ip cidr "198.51.100.0/24" |
| Country | Yes | Yes | country in ["HK", "SG"] |
| Port and protocol | Yes | —No | port eq 25565 |
| Path | —No | Yes | path starts_with "/admin" |
| Method | —No | Yes | method in ["POST"] |
rule_02 / Try it
Build one. Watch it work.
Pick what to match and what to do. Sample requests flow through the gates on the right.
Resulting rule
if country in ["HK"] then block
Last request —
- Matched
- 0
- Reached origin
- 0
- Simulated data
- Simulated data · Generated by the test network, not measured.
Audit trail
- Change the rule to write the first entry.
Order, limits and ports.
Order
Rules run top to bottom.
Rules run in the order you set. Put allow rules for your own addresses first, then the rest.
- IP and CIDR allow and deny
- Method rules
- 01
ip cidr "198.51.100.0/24" → allow1,204 hits 24 h - 02
path starts_with "/admin" → challenge318 hits 24 h - 03
path eq "/login" → rate_limit 10/60s2,560 hits 24 h - 04
method in ["TRACE"] → block41 hits 24 h
hits 24 h
Rate limits
Count per source, answer for you.
Count requests from each source over 1 second, 10 seconds, a minute, 10 minutes or an hour. Over the limit, the edge answers and your origin never sees the request.
- Rate-limit rules
limit 10 / 60s
Game ports
Open the game port. Close the rest.
For game servers, allow the game port and block everything else. Remote-console ports never need to face the internet.
- Port rules for game servers
- Coming soon Managed rule sets
- Coming soon Bot scoring
- 25565/TCP Minecraft: Java Edition · game open
- 19132/UDP Minecraft: Bedrock Edition · game open
- 30120/UDP + TCP FiveM · game open
- 28015/UDP Rust · game open
- 28016/TCP Rust · remote console closed
- 27015/UDP Counter-Strike 2 · game open
- 27015/TCP Counter-Strike 2 · remote console closed
Rules in every plan.
| Solo US$9 / month Start trial | Pro US$29 / month Start trial | Network US$99 / month Start trial | |
|---|---|---|---|
| Firewall | |||
| Firewall rules | 10 | 50 | 250 |
| Rate limiting | 1 | ||
Start from these.
- rule_10
Guard the admin path
Visitors from outside your country get a challenge before /admin.
if path starts_with "/admin" and country not_in ["HK"] then challenge - rule_11
Slow down login attempts
Ten tries a minute per source is plenty for people and too few for scripts.
if path eq "/login" then rate_limit 10/60s - rule_12
Close the Rust remote console
Players need the game port, not the console port.
if port eq 28016 then block - rule_13
Let your own network in
Put this first so your team never meets a challenge.
if ip cidr "198.51.100.0/24" then allow
Rule questions.
Where do the rules run?
At the edge location that serves the service, before traffic is forwarded. Blocked requests never reach your origin.
What does a challenge do?
It asks the browser to prove it is a real visitor before the request passes. It works on websites only, because game clients cannot answer it.
How many rules can I have?
Solo includes 10 firewall rules, Pro 50 and Network 250. Compare plans.
Are there managed rule sets or bot scoring?
Not yet. Managed rule sets and bot scoring are Coming soon in Phase 3. Today you write your own rules.
Write the first one.
Add a service and put your rules in front of it.
7-day trial · card required · cancel before day 7 and pay nothing