---
title: "Framer Help: How to use Firewall"
description: Learn how to redirect or block visitors based on the country they are in and the path they request.
published: "Nov 6, 2026, 11:03 AM UTC"
---

# 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 with the Advanced Hosting add-on and on Enterprise plans.

### [About firewall rules](#about-firewall-rules)

A firewall rule combines an action with conditions:
- **Action** is what happens on a match: redirect the visitor to a locale, another URL or path, or block the request.
- **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.

Country conditions don’t apply to AI agents and link-preview bots (for example ChatGPT, Slack or Facebook previews), which fetch pages from data-center IPs. Search engine crawlers such as Googlebot are treated like regular visitors from their IP’s country.

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

### [Add a firewall rule](#add-a-firewall-rule)
1. Open your project and go to **Site Settings** → Hosting → **Firewall**.
2. Click the **Add** button.
3. Choose an **Action**: **Redirect**, **Redirect to Locale**, or **Block**.
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. 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.
6. For a redirect, enter the **Redirect To** target, or select the locale to send visitors to.
7. Click **Add**.
8. Publish your project for the rule to take effect.

### [Use path patterns](#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](../how-to-setup-redirects-to-maintain-seo-ranking/).

### [Available actions](#available-actions)
- **Redirect** sends visitors to another page. It also applies to visitors on locale pages.
- **Redirect to locale** sends visitors to a different locale on your site. Visitors who are already on a locale are skipped.
- **Block** does not send any content.

### [Inverting conditions](#inverting-conditions)

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.

### [Manage firewall rules](#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.

### [Firewall and Automatic Locale](#firewall-and-automatic-locale)

Firewall runs first. If a rule sends a visitor to a locale, Automatic Locale won’t redirect them again.

For example, a rule sends visitors in Canada to `/ca`. A French-speaking visitor in Canada lands on `/ca`, not `/ca-fr`.

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

Updated

October 1, 2026

## Your next idea starts here

Create personal portfolio, Build startup site, `Launch landing page`, Start company blog

[Start without AI](https://framer.com/signup)

---

## Navigation

- [Enterprise](../../../enterprise/)
- [Pricing](../../../pricing)
- [Log in](https://framer.com/login)
- [Sign up](https://www.framer.com/r/signup/)
- [Brand guidelines](../../../brand)
- [Help center](../../)
- [Publishing](../../publishing/)
- [AI](../../../ai/)
- [Agents](../../../agents/)
- [MCP New](../../../mcp/)
- [Design](../../../design/)
- [Collaborate](../../../collaborate/)
- [CMS](../../../cms/)
- [Hosting](../../../hosting/)
- [Performance](../../../performance/)
- [Analytics](../../../analytics)
- [SEO](../../../seo/)
- [Skills New](../../../skills)
- [Convert](../../../convert/)
- [Publish](../../../publish/)
- [Updates](../../../updates)
- [Templates](https://www.framer.com/community/marketplace/templates/)
- [Components](https://www.framer.com/community/marketplace/components/)
- [Vectors](https://www.framer.com/community/marketplace/vectors/)
- [Plugins](https://www.framer.com/community/marketplace/plugins/)
- [Gallery](https://www.framer.com/community/gallery/)
- [Hire Experts](https://www.framer.com/community/members/)
- [Switch New](../../../switch/)
- [Agencies](../../../agencies/)
- [Startups](../../../startups/)
- [Academy](../../../academy/)
- [Desktop App](../../../downloads/)
- [Developers](../../../developers/)
- [Affiliates](../../../creators)
- [Experts New](../../../expert/apply/)
- [Guides](../../../guides)
- [Blog](../../../blog/)
- [Newsletter](../../../newsletter)
- [Stories](../../../stories/)
- [Skills Index New](../../../skills/index)
- [Students](../../../education/students/)
- [Ambassadors](../../../)
- [Help Articles](../../)
- [Meetups](../../../meetups/)
- [Contact](../../../contact/)
- [Designers](../../../solutions/designers/)
- [Agencies](../../../solutions/agencies/)
- [Marketers](../../../solutions/marketers/)
- [Growth](../../../solutions/growth/)
- [Builders](../../../solutions/builders/)
- [Engineers](../../../solutions/engineers/)
- [Site Teams](../../../solutions/site-teams/)
- [Founders](../../../solutions/founders/)
- [AI website builder](../../../solutions/ai-website-builder/)
- [AI design agent](../../../solutions/ai-designer/)
- [Pro sites](../../../solutions/website-builder/)
- [Landing pages](../../../solutions/landing-pages/)
- [Portfolio maker](../../../solutions/portfolio-website/)
- [UI/UX design](../../../solutions/ui-ux-design/)
- [Figma to HTML](../../../solutions/figma-to-html/)
- [No-code](../../../solutions/no-code-website-builder/)
- [Compare](../../../compare)
- [Webflow](../../../compare/framer-vs-webflow)
- [Figma](../../../compare/framer-vs-figma)
- [Wix](../../../compare/framer-vs-wix)
- [Squarespace](../../../compare/framer-vs-squarespace)
- [WordPress](../../../compare/framer-vs-wordpress)
- [Readymag](../../../compare/framer-vs-readymag)
- [Ceros](../../../compare/framer-vs-ceros)
- [Unbounce](../../../compare/framer-vs-unbounce)
- [Lovable](../../../compare/framer-vs-lovable)
- [Claude Code](../../../compare/framer-vs-claude-code)
- [ChatGPT](../../../compare/framer-vs-chatgpt)
- [Codex](../../../compare/framer-vs-codex)
- [Contentful](../../../compare/framer-vs-contentful)
- [Sanity](../../../compare/framer-vs-sanity)
- [AEM](../../../compare/framer-vs-adobe-experience-manager)
- [Replit](../../../compare/framer-vs-replit)
- [Astro](../../../compare/framer-vs-astro)
- [v0](../../../compare/framer-vs-v0)
- [About New](../../../about)
- [Careers](../../../careers/)
- [Security](../../../legal/security)
- [Brand](../../../brand)
- [Abuse](mailto:abuse@framer.com)
- [Legal](../../../legal/community-terms)
- [Trust](https://app.eu.vanta.com/framer.com/trust/ow67ujg7iav0t6qtd1o6r2)
- [Merch](../../../store)
- [Keyboard](../../../f1)
- [Stack Score](../../../stack-score/)
- [Free domains](../../../domains/)
- [CanvasBench](../../../canvasbench/)
- [State of Sites](https://www.framer.com/state-of-sites-2026/)
- [AEO scanner](../../../aeo)
- [Link Preview](https://www.linkpreview.app/)
- [Checking status](https://www.framerstatus.com/)
