How to use Firewall

Learn how to redirect or block visitors based on the country they are in and the path they request.

Firewall rules let you control how visitors reach your site based on the country they are in and the path they request. Use them to send visitors to a regional site, keep a path available in some countries only, or block traffic you do not want to serve.

Firewall is available on Enterprise plans.

About firewall rules

A firewall rule combines conditions with an action:

  • Conditions match the visitor’s country, the requested path, or both. Each condition can be inverted, so a rule can also match everything except the countries or path you select.

  • Action is what happens on a match: redirect the visitor to another URL or path, or block the request.

Firewall rules apply to your published site, so publish your project after adding or editing rules.

Add a firewall rule

  1. Open your project and go to Site Settings → Hosting → Firewall.

  2. Click the Add button.

  3. Click the Country field, search for a country, and select it. Repeat to add more countries. Selected countries appear as chips you can remove individually.

  4. Enter the Path the rule applies to. Click the field to pick a path pattern and Framer inserts a template you can edit.

  5. Choose an Action: Redirect or Block.

  6. For a redirect, enter the Redirect To target.

  7. Click Add.

  8. Publish your project for the rule to take effect.

[Screenshot placeholder — 800×500: Site Settings → Hosting → Firewall with three rules in the list, showing the Country, Path, and Action columns.]

[Screenshot placeholder — 800×500: The Add Rule modal with two countries selected as chips, a path filled in, Action set to Redirect, and a Redirect To value.]

Use path patterns

The Path field offers the same patterns as redirects:

Pattern

Purpose

Example

Exact Path

Matches one path

/blog matches /blog only

Path and Subpaths

Matches everything under a path

/blog/* matches /blog/my-post and /blog/2026/update

Wildcard

Matches every path on your site

/*

Parameter

Captures a named segment you can reference in the redirect target

/blog/:slug captures my-post as slug

Learn more about path patterns and capture groups.

Set the redirect target

When the action is Redirect, click the Redirect To field to choose how to build the target:

  • Exact URL sends visitors to a full URL on another domain, such as https://acme.com.

  • Exact Path sends visitors to a path on your own site, such as /blog.

  • Parameter inserts a parameter captured by the path, so /blog/:slug can redirect to /nl/blog/:slug.

Match everything except a country or path

Every condition can be inverted:

  1. Hover the Path or Country label in the rule.

  2. Click the menu.

  3. Choose Invert Condition.

The label changes to Path Is Not or Country Is Not, and the rule then matches everything outside the value you selected. In the rules list, inverted country conditions read as “All except” followed by the countries.

[Screenshot placeholder — 800×500: The ⋯ menu open on the Country label with Invert Condition highlighted.]

Manage firewall rules

Rules are evaluated in the order shown in the Firewall list.

  • Drag and drop rules to change their priority.

  • Open the menu on a rule to edit or delete it.

When a rule matches several countries, the list shows the first three, followed by “+ 2 others” for the rest.

Keep in mind

  • A rule needs a path and, for redirects, a redirect target before you can save it.

  • Deleting a rule takes effect on publish — the rule is removed from your site when you publish a new version.

Still not sure how to set up a rule? Get in touch with us via our contact page for more help.

Updated

Your next idea starts here

GPT 5.6 Terra

Create personal portfolio

Build startup site

Launch landing page

Start company blog

Framer UI showing Pages, Layers and Assets panels titles
Framer UI showing Pages, Layers and Assets panels titles