Skip to content

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

Rule cardEnabled

Ifcountry is notHK

andpath starts with/login

thenrate-limit10 per minute

rule_01 / Anatomy

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.

  1. if
  2. countryfield
  3. inoperator
  4. ["HK", "SG"]value
  5. and …more conditions
  6. then
  7. blockaction
What a rule can match, by service type
FieldGame serversWebsitesExample
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.

Action

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

  1. Change the rule to write the first entry.
rule_03 / In practice

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
Rules on one website Illustrative
  1. 01 ip cidr "198.51.100.0/24" → allow 1,204 hits 24 h
  2. 02 path starts_with "/admin" → challenge 318 hits 24 h
  3. 03 path eq "/login" → rate_limit 10/60s 2,560 hits 24 h
  4. 04 method in ["TRACE"] → block 41 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
Requests from one source, one window Illustrative

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
Port rules, typical serversCommon defaults, check your host
  • 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
rule_04 / Plans

Rules in every plan.

Show plan
Firewall by plan
Solo US$9 / month Start trial Pro US$29 / month Start trial Network US$99 / month Start trial
Firewall
Firewall rules 10 250
Rate limiting 1

Compare every plan

rule_05 / Templates

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_06 / FAQ

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

Products

Games

More

Reduce motion