attr.so
FeaturesAboutChrome ExtensionFree toolsBlogPricingSign inSign up free
FeaturesAboutChrome ExtensionFree toolsBlogPricingSign inSign up free
attr.so/Free tools/Geo-Block Tester
FREE TOOL · NO SIGNUP

Geo-Block Tester -free

Detect your country, simulate blocking visitors from other regions, and see how country-level link rules actually work - GDPR, OFAC, affiliate fraud, and more.

250+country codes
edgeevaluated
∞rule tests / day
attr.so/tools/geo-blockerLive preview
…
Detecting your location…
detected via your edge headers
Geo rule
Pick countries to block. Everyone else is allowed through.
Where geo-blocking matters
GDPR & EU compliance
Block traffic from regions you're not licensed to serve, or show region-specific consent flows.
Sanctioned countries
Easily exclude countries on OFAC/sanctions lists from your campaign reach.
DTC + retail
Run separate creatives per region and stop wasted clicks from out-of-market traffic.
Affiliate fraud
Detect and block clicks from countries where the offer is not valid.
/ 5 quick steps

How to use this tool.

~ 30 seconds end to end
  1. 01

    See your detected country

    We read the country header your CDN sets (Vercel x-vercel-ip-country, Cloudflare cf-ipcountry, etc.) - same signal a real geo-block would use.

  2. 02

    Choose blocklist or allowlist

    Blocklist: pick countries to block, everyone else passes. Allowlist: pick countries that pass, everyone else is blocked.

  3. 03

    Pick the countries

    Click any of the 20 most common countries to add to your rule. Real attr.so links support all 250+ ISO country codes.

  4. 04

    See the live decision

    The page shows whether your real visit would be blocked or allowed under the rule you just defined.

  5. 05

    Apply it for realOPTIONAL

    Sign up free and copy the rule to any of your attr.so short links - blocks evaluate at the CDN edge before your origin sees the request.

    Make it trackable
/ Where people use it

Common use cases.

6 most popular
EU
USE CASE 01

GDPR compliance

Block EU traffic from offers without a lawful basis, or route them to a region-specific consent flow first.

Compliance
USE CASE 02

OFAC sanctions

Automatically block traffic from countries on US sanctions lists - a hard requirement for many US merchants.

Pricing
US
DE
JP
IN
USE CASE 03

Regional offers

Run different creatives or pricing per region. Free shipping US, EUR pricing EU, INR pricing India.

Affiliates
bit.ly/abc→t.co/xyz→attr.so
USE CASE 04

Affiliate fraud prevention

Block clicks from countries where the affiliate program does not reimburse or where fraud rates are abnormally high.

Legal
✓utm_source = newsletter
✓utm_medium = email
!utm_campaign = Spring%20Sale
✓utm_content = button_a
USE CASE 05

Content licensing

Music, video, and book licences are usually region-bound. Geo-block to stay compliant with your licensors.

Beta
USE CASE 06

Beta launches

Roll out to a single country first, watch the data, then expand globally.

/ The difference

Free, then trackable when you need it.

vs typical free tools
⚠ Most free tools

What you usually get

  • JS-based blocking only. Runs in the browser after the page already loaded - too late for compliance.
  • Hard-coded country list. Most plugins ship a frozen list and never add new ISO codes.
  • Block-only, no redirect. No way to send EU traffic to a region-specific consent flow.
  • No visibility into who was blocked. Blocked visitors vanish without a log - bad for product decisions.
  • One rule across the whole site. No per-campaign or per-link rule sets.
attr.so · what we ship

What you get here

  • Edge-evaluated. Geo decisions run at the CDN edge - sub-millisecond, no origin hop.
  • 250+ country codes + groupings. Every ISO code plus EU, EEA, GCC presets for common rule sets.
  • Allow / block / redirect modes. Return 451, redirect to a region-specific URL, or show a custom message per link.
  • Logged in click analytics. Every block attempt is recorded so you can see how big the blocked audience is.
  • Per-link, not per-domain. Different rules for different campaigns on the same domain - no DNS gymnastics.
/ FAQ

Frequently asked.

Can't find it? Email us
How accurate is IP-based geolocation?
Country-level accuracy is 98-99% for residential traffic. Mobile carriers occasionally route through other regions - for mission-critical compliance, combine geo-blocking with explicit user-confirmed location.
Can users bypass geo-blocking with a VPN?
Yes - a determined VPN user can mask their country. Geo-blocking is a compliance layer (you took reasonable steps), not an unbreakable wall. For high-stakes use cases, layer in payment-country checks too.
Does this work for GDPR compliance?
Geo-blocking by itself does not make you GDPR-compliant - but it is a common component of compliance, used to route EU visitors to a consent flow before exposing them to non-essential tracking.
Which countries are typically on sanctions lists?
OFAC's comprehensive list usually includes Cuba, Iran, North Korea, Syria, and the Crimea/Donetsk/Luhansk regions of Ukraine. Russia and Belarus have partial sanctions. Always check OFAC's current SDN list.
Can I block by region or city, not just country?
Country and ISO sub-region (state/province) blocking are supported on attr.so. City-level blocking is generally too unreliable to recommend.
What HTTP status code do blocked visitors see?
attr.so returns 451 ("Unavailable For Legal Reasons") by default - the standard signal for legal/regional blocks. You can override with a custom redirect URL or message.
Are blocked clicks counted in analytics?
Yes - every block attempt is logged with country, time, and the rule that fired, so you can see how big your blocked audience is and whether the rule is working as intended.
/ Keep going

Pair with these.

Related free tools

Link Privacy CheckerWhere does a short link go?→UTM Parameter BuilderTag campaigns properly→Link Expiration CalculatorPlan campaign timing→Click Estimate CalculatorProject click volume→

Related guides

Build a region-specific landing URLFREE TOOL→Plan a region-specific campaign windowFREE TOOL→Audit a competitor link end-to-endFREE TOOL→Estimate clicks per regionFREE TOOL→

Block traffic at the edge with attr.so.

Per-link rules, 250+ country codes, edge-evaluated. Every block attempt logged in your dashboard.

Start free See pricing
/ More from attr.so

Other free tools.

Browse all 12 →

QR Code Generator

QR codes from any URL

Open tool

URL Shortener

Shorten long URLs

Open tool

UTM Parameter Builder

Tag campaigns properly

Open tool

Meta Tag / OG Preview

See how a link looks

Open tool

Link Privacy Checker

Where does a short link go?

Open tool

Geo-Block Tester

Country-level blocks

You're here
attr.so

Privacy-first, developer-friendly link management software

Product
  • Features
  • Chrome Extension
  • Free tools
  • Pricing
  • Docs
  • API reference
  • Changelog
  • Roadmap
Company
  • About
  • Blog
  • Help
  • Feature requests
  • Support
  • Status
Legal
  • Privacy
  • Terms
  • Security
© 2026 Attr.so - All rights reserved
Built by Apptimistic