Licensing limits, sanctions rules, products you can't ship. GeoBlock restricts page access by segment with three modes: show a message, show a modal, or redirect away. You pick the countries, the pages and what blocked visitors see.
No credit card · Every feature on every plan

TL;DR
GeoBlock restricts page access by country, state or city with three modes: an inline message, a popup modal or a redirect. A matching block turns off your other GeoSwap overlays on that page, every block needs explicit segments, and there are no A/B splits by design. It's on every GeoSwap plan.
Why pay for this?
Geo Targetly$9–349+/moTrusted by 2,500+ businesses · No pageview cutoffs · No credit card required
Works with any platform
Message mode replaces the page content with your HTML. Popup mode shows a modal over the page. Redirect mode sends the visitor to a different URL. Pick the one that fits your requirement.
When a block matches, GeoSwap doesn't run bars, popups, content swaps, scripts or the consent banner on that page. If a visitor matches both a redirect and a block, the redirect runs first. To block a country, don't include it in a redirect rule.
GeoBlock has no "block everyone" default. You choose the segments to block, so a page is never blocked by accident.
Blocking is a compliance or legal decision, so GeoBlock has no traffic splits. Redirects, links, content, bars and popups have them.
In message and popup modes, you write the HTML visitors see. Explain why access is restricted, link to an alternative or give contact details.
Block one product page, a list of URLs, a URL pattern or the whole site, with exclusions. If no block matches, your bars, popups and content swaps run as normal.
“Compliance isn't a feature you ship once. It's a posture you maintain.”
Add the GeoSwap script tag to your site (the same script every GeoSwap tool uses)
Create a block rule in the dashboard: select the segments to block and choose a mode (message, popup or redirect)
Write your block message HTML or set the redirect URL, so visitors know why and what to do next
Visitors in blocked segments see the block. Everyone else sees your normal page, and crawlers see your original content.
Block the whole site, or only the pages that need it, such as one product.

Each rule names the countries, states or cities that shouldn't see the page.

Replace the page with a message, cover it with a popup that can't be closed, or send them to another URL. Blocks run in the browser, so pair them with server-side controls when access must be strict.

Open Preview on any rule to see what a blocked visitor gets.


The GeoBlock dashboard
Show visitors from sanctioned countries, such as Cuba, Iran, North Korea or Syria, a clear compliance message. GeoBlock works from IP location, so use it as one layer next to the checks in your sign-up and checkout.
Your video content is licensed for the US and Canada only? Block every other country with a message explaining where it's available.
Selling a product you can't ship to certain countries? Block those countries from the product page and redirect them to your international range, so nobody starts a checkout that can't finish.
Financial products often can't be offered in some jurisdictions. Block visitors from countries where you're not licensed and show them a regulatory notice.
<script>window.geoswap=window.geoswap||{q:[],track:function(){this.q.push(arguments)}};</script>
<script src="https://cdn.geoswap.co/geoswap.js" data-project="YOUR_PROJECT_ID" defer></script>Your project ID is filled in for you in the dashboard (Setup → Sites & script).

Every feature on every plan. Plans differ by history, team and scale.