Restrict page access based on visitor location
Geo Blocks let you restrict who can access your pages based on where they are. When a visitor from a blocked location arrives, you choose what happens: show them a message, display a popup, or redirect them somewhere else.
This is useful when you have legal, licensing, or regulatory reasons to limit access. For example, a streaming service might need to block content in countries where they do not hold distribution rights. An e-commerce store might block checkout for regions they cannot ship to.
"This content is not available in your region." — for media, streaming, or software that is licensed only in certain countries.
Block access to gambling, financial, or age-restricted content in jurisdictions where it is prohibited. Show a compliance message explaining why access is restricted.
Block EU visitors from a US-only page and redirect them to the EU equivalent. The visitor is seamlessly sent to the right version instead of seeing an error.
Only allow access from specific countries during a soft launch. Block everyone else with a "Coming soon to your region" message until you are ready to expand.
Block checkout or signup pages for regions with high fraud rates. Show a message directing those visitors to contact support instead.

Navigate to Geo Blocks in the sidebar and click New Block.
Give your block a descriptive name (e.g., "EU Content Restriction"). Choose which pages to protect: all pages, specific URLs, or URL patterns with wildcards.
Each rule targets a segment and specifies a block mode: message, popup, or redirect. You can add multiple rules to handle different regions differently.
Depending on the block mode you chose, configure the message text, popup title and body, or redirect URL. See the Block Modes section below for details.
Hit Save to activate the block. Use the Rule Simulator in your dashboard to test from different countries without needing a VPN.
Each blocking rule uses one of three modes. Choose the one that fits your situation:
Displays a static HTML message directly on the blocked page. The page content is replaced with your message. This is the simplest approach and works well when you want to explain why access is restricted.
Example:
"This content is not available in your region due to licensing restrictions. Please visit our international catalog for available titles."
Shows a modal popup with a title and message over the page content. The page is dimmed behind the popup. The visitor cannot interact with the page until they acknowledge the popup. Use this when you need to make sure the visitor sees the message.
Example:
Title: "Access Restricted"
Message: "This service is not yet available in your country. We are working on expanding to your region. Enter your email to be notified when we launch."
Sends the visitor to a different URL entirely. The visitor never sees the blocked page. This is the best option when you have a regional equivalent or a dedicated "not available" landing page.
Example:
EU visitors trying to access store.example.com/us-only-deal are redirected to store.example.com/eu-deals.
Each Geo Block can have multiple rules, and each rule targets a different segment with its own block mode. This means you can handle different regions in completely different ways within a single Geo Block.
Rules are evaluated in order. The first rule whose segment matches the visitor's location is the one that fires. Visitors who do not match any rule see the page normally.
You control exactly which pages your Geo Block protects:
Search engines are not blocked
Googlebot and other search engine crawlers are never affected by Geo Blocks. They always see your original page content, which means your pages remain indexed and ranked normally. See the SEO Safety docs for more details.
Be thoughtful about blocking. Restricting access should be a last resort, not a first choice. If you can redirect or personalize instead, that is usually better for the visitor experience.
Always provide an explanation. A blank page or generic error frustrates visitors. Tell them why access is restricted and what they can do instead.
Use redirect mode when you have a regional alternative. Sending blocked visitors to a relevant page is far better than showing them a dead end.
Use segments to define blocked regions clearly. Broad segments ("European Union") are easier to maintain than listing individual countries.
Test your blocks with the Rule Simulator before going live. Verify that the right visitors are blocked and that unblocked visitors see the page normally.
Review your blocks periodically. Licensing agreements, regulations, and your own service availability change over time. A block you set up last year may no longer be needed.
Learn about SEO safety across all GeoSwap products.