{"id":31,"date":"2020-05-07T00:06:48","date_gmt":"2020-05-07T00:06:48","guid":{"rendered":"https:\/\/sweepwidget.com\/docs\/?p=31"},"modified":"2026-03-06T19:40:12","modified_gmt":"2026-03-06T19:40:12","slug":"geo-targeting-restrict-users-by-country","status":"publish","type":"post","link":"https:\/\/sweepwidget.com\/docs\/geo-targeting-restrict-users-by-country","title":{"rendered":"Geo-Targeting: Restrict Entries by Country and State"},"content":{"rendered":"\n<p>Geo-targeting lets you control which countries (and even states\/provinces) can enter your giveaway. You can either <strong>allow<\/strong> only specific locations or <strong>block<\/strong> specific locations from entering. This is essential for legal compliance, shipping limitations, or region-specific promotions.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Why Use Geo-Targeting<\/strong><\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Legal requirements<\/strong> &#8211; Some countries have strict giveaway\/sweepstakes laws<\/li>\n\n\n\n<li><strong>Shipping limitations<\/strong> &#8211; Physical prizes can only be shipped to certain regions<\/li>\n\n\n\n<li><strong>Regional promotions<\/strong> &#8211; Target specific markets for localized campaigns<\/li>\n\n\n\n<li><strong>Sponsor requirements<\/strong> &#8211; Sponsors may require geographic restrictions<\/li>\n\n\n\n<li><strong>Currency\/payment limitations<\/strong> &#8211; Gift cards or vouchers may only work in certain countries<\/li>\n\n\n\n<li><strong>State-level compliance<\/strong> &#8211; Some US states, Canadian provinces, or other regions have specific contest laws<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>How to Set Up Geo-Targeting<\/strong><\/h2>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Step 1: Go to Security Settings<\/strong><\/h3>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Create or edit a giveaway<\/li>\n\n\n\n<li>Click on the <strong>Security Settings<\/strong> tab in the left sidebar<\/li>\n<\/ol>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Step 2: Enable Geo-Targeting<\/strong><\/h3>\n\n\n\n<p>Check the box labeled <strong>&#8220;Enable geo-targeting&#8221;<\/strong>.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img fetchpriority=\"high\" decoding=\"async\" width=\"1024\" height=\"357\" src=\"https:\/\/sweepwidget.com\/docs\/wp-content\/uploads\/2020\/05\/geo-targeting-1-1024x357.png\" alt=\"\" class=\"wp-image-7697\" srcset=\"https:\/\/sweepwidget.com\/docs\/wp-content\/uploads\/2020\/05\/geo-targeting-1-1024x357.png 1024w, https:\/\/sweepwidget.com\/docs\/wp-content\/uploads\/2020\/05\/geo-targeting-1-300x105.png 300w, https:\/\/sweepwidget.com\/docs\/wp-content\/uploads\/2020\/05\/geo-targeting-1-768x268.png 768w, https:\/\/sweepwidget.com\/docs\/wp-content\/uploads\/2020\/05\/geo-targeting-1.png 1200w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Step 3: Choose Allow or Block Mode<\/strong><\/h3>\n\n\n\n<p>Select one of the two modes:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Only allow these locations<\/strong> &#8211; Only participants from the countries you select can enter. Everyone else is blocked.<\/li>\n\n\n\n<li><strong>Block these locations<\/strong> &#8211; Everyone can enter <em>except<\/em> participants from the countries you select.<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th>Mode<\/th><th>Use Case<\/th><\/tr><\/thead><tbody><tr><td><strong>Only allow<\/strong><\/td><td>You know exactly which countries should be eligible (e.g., US-only sweepstakes)<\/td><\/tr><tr><td><strong>Block<\/strong><\/td><td>You want to run a worldwide giveaway but need to exclude specific countries for legal reasons<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Step 4: Select Countries<\/strong><\/h3>\n\n\n\n<p>Use the search field to find and select countries:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Type a country name in the <strong>&#8220;Search countries&#8230;&#8221;<\/strong> field<\/li>\n\n\n\n<li>Click a country from the dropdown to add it<\/li>\n\n\n\n<li>Selected countries appear as blue pill badges above the search field<\/li>\n\n\n\n<li>Click the <strong>x<\/strong> on any pill to remove that country<\/li>\n<\/ol>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img decoding=\"async\" width=\"1000\" height=\"602\" src=\"https:\/\/sweepwidget.com\/docs\/wp-content\/uploads\/2020\/05\/geo-targeting-2.png\" alt=\"\" class=\"wp-image-7699\" style=\"width:600px\" srcset=\"https:\/\/sweepwidget.com\/docs\/wp-content\/uploads\/2020\/05\/geo-targeting-2.png 1000w, https:\/\/sweepwidget.com\/docs\/wp-content\/uploads\/2020\/05\/geo-targeting-2-300x181.png 300w, https:\/\/sweepwidget.com\/docs\/wp-content\/uploads\/2020\/05\/geo-targeting-2-768x462.png 768w\" sizes=\"(max-width: 1000px) 100vw, 1000px\" \/><\/figure>\n\n\n\n<p>You can add as many countries as you need. The full list includes all 249 internationally recognized countries and territories.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Step 5: Select States\/Provinces (Optional)<\/strong><\/h3>\n\n\n\n<p>For supported countries, you can restrict entries down to the state or province level. When you select one of the following countries, a state\/province section automatically appears below with checkboxes:<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th>Country<\/th><th>Regions Available<\/th><\/tr><\/thead><tbody><tr><td><strong>United States<\/strong><\/td><td>50 states + District of Columbia<\/td><\/tr><tr><td><strong>Canada<\/strong><\/td><td>13 provinces and territories<\/td><\/tr><tr><td><strong>United Kingdom<\/strong><\/td><td>4 nations (England, Northern Ireland, Scotland, Wales)<\/td><\/tr><tr><td><strong>Australia<\/strong><\/td><td>8 states and territories<\/td><\/tr><tr><td><strong>Brazil<\/strong><\/td><td>27 states<\/td><\/tr><tr><td><strong>India<\/strong><\/td><td>36 states and union territories<\/td><\/tr><tr><td><strong>Germany<\/strong><\/td><td>16 federal states<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>By default, <strong>all states\/provinces are selected<\/strong> when you add a supported country. To restrict to specific states:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Uncheck the <strong>&#8220;All&#8221;<\/strong> checkbox next to the country name<\/li>\n\n\n\n<li>Select only the states\/provinces you want to include (or exclude, depending on your mode)<\/li>\n<\/ol>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img decoding=\"async\" width=\"994\" height=\"1024\" src=\"https:\/\/sweepwidget.com\/docs\/wp-content\/uploads\/2020\/05\/geo-targeting-3-994x1024.png\" alt=\"\" class=\"wp-image-7700\" style=\"width:600px\" srcset=\"https:\/\/sweepwidget.com\/docs\/wp-content\/uploads\/2020\/05\/geo-targeting-3-994x1024.png 994w, https:\/\/sweepwidget.com\/docs\/wp-content\/uploads\/2020\/05\/geo-targeting-3-291x300.png 291w, https:\/\/sweepwidget.com\/docs\/wp-content\/uploads\/2020\/05\/geo-targeting-3-768x791.png 768w, https:\/\/sweepwidget.com\/docs\/wp-content\/uploads\/2020\/05\/geo-targeting-3.png 1000w\" sizes=\"(max-width: 994px) 100vw, 994px\" \/><\/figure>\n\n\n\n<p>For countries not in the list above, geo-targeting works at the country level only.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Step 6: Save Your Changes<\/strong><\/h3>\n\n\n\n<p>Click <strong>Save &amp; Publish<\/strong> to apply the geo-targeting restrictions.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>What Blocked Users See<\/strong><\/h2>\n\n\n\n<p>When someone from a restricted location visits your giveaway, they see the message:<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>&#8220;This location is not allowed to enter.&#8221;<\/p>\n<\/blockquote>\n\n\n\n<p>The giveaway details (title, description, countdown, prize info) are still visible, but the entry form and entry methods are hidden.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>How Geo-Targeting Works<\/strong><\/h2>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th>Aspect<\/th><th>Details<\/th><\/tr><\/thead><tbody><tr><td><strong>Detection method<\/strong><\/td><td>IP-based geolocation via Cloudflare<\/td><\/tr><tr><td><strong>Country accuracy<\/strong><\/td><td>Highly accurate at the country level<\/td><\/tr><tr><td><strong>State\/province accuracy<\/strong><\/td><td>Generally accurate, but may vary in some regions<\/td><\/tr><tr><td><strong>Enforcement<\/strong><\/td><td>Both client-side (widget) and server-side (login and entry submission)<\/td><\/tr><tr><td><strong>VPN users<\/strong><\/td><td>May appear from a different location. Combine with &#8220;Block VPNs&#8221; for stronger enforcement.<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>SweepWidget enforces geo-targeting at multiple points:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>Widget load<\/strong> &#8211; The giveaway widget checks the visitor&#8217;s location when it loads and hides the entry form if they are restricted.<\/li>\n\n\n\n<li><strong>Login\/entry submission<\/strong> &#8211; The server verifies the user&#8217;s location again when they attempt to log in or submit an entry. This prevents bypassing the client-side check.<\/li>\n<\/ol>\n\n\n\n<p>For state-level restrictions, if the visitor&#8217;s state cannot be determined, the system falls back to country-level enforcement only. This means the country restriction is always enforced, but state-level checks are skipped if region data is unavailable.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Common Country Combinations<\/strong><\/h2>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th>Region<\/th><th>Countries<\/th><\/tr><\/thead><tbody><tr><td><strong>North America<\/strong><\/td><td>United States, Canada, Mexico<\/td><\/tr><tr><td><strong>English-speaking<\/strong><\/td><td>United States, Canada, United Kingdom, Australia, New Zealand, Ireland<\/td><\/tr><tr><td><strong>European Union<\/strong><\/td><td>Germany, France, Italy, Spain, Netherlands, Belgium, Austria, Portugal, Greece, Poland (and others)<\/td><\/tr><tr><td><strong>Scandinavia<\/strong><\/td><td>Sweden, Norway, Denmark, Finland<\/td><\/tr><tr><td><strong>DACH region<\/strong><\/td><td>Germany, Austria, Switzerland<\/td><\/tr><tr><td><strong>Latin America<\/strong><\/td><td>Mexico, Brazil, Argentina, Colombia, Chile, Peru<\/td><\/tr><tr><td><strong>Asia Pacific<\/strong><\/td><td>Australia, New Zealand, Japan, South Korea, Singapore<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Use Cases<\/strong><\/h2>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th>Scenario<\/th><th>Mode<\/th><th>Configuration<\/th><\/tr><\/thead><tbody><tr><td><strong>US-only sweepstakes<\/strong><\/td><td>Allow<\/td><td>Allow United States only<\/td><\/tr><tr><td><strong>US sweepstakes excluding void states<\/strong><\/td><td>Allow<\/td><td>Allow United States, then uncheck void states (e.g., New York, Florida)<\/td><\/tr><tr><td><strong>Worldwide except restricted countries<\/strong><\/td><td>Block<\/td><td>Block countries with strict contest laws (e.g., Belgium, Italy)<\/td><\/tr><tr><td><strong>Canada excluding Quebec<\/strong><\/td><td>Allow<\/td><td>Allow Canada, then uncheck Quebec in the province list<\/td><\/tr><tr><td><strong>UK product launch<\/strong><\/td><td>Allow<\/td><td>Allow United Kingdom only<\/td><\/tr><tr><td><strong>Physical prize shipping<\/strong><\/td><td>Allow<\/td><td>Allow only countries you can affordably ship to<\/td><\/tr><tr><td><strong>Service availability<\/strong><\/td><td>Allow<\/td><td>Allow only countries where your service operates<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Legal Considerations<\/strong><\/h2>\n\n\n\n<p>Some countries and regions have strict laws regarding giveaways and sweepstakes:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Quebec, Canada<\/strong> &#8211; Requires registration and fees for contests over certain values. You can now exclude Quebec specifically using state-level targeting.<\/li>\n\n\n\n<li><strong>Belgium<\/strong> &#8211; Has restrictions on promotional contests<\/li>\n\n\n\n<li><strong>Italy<\/strong> &#8211; Requires government notification for certain promotions<\/li>\n\n\n\n<li><strong>Brazil<\/strong> &#8211; Requires authorization from SECAP for sweepstakes<\/li>\n\n\n\n<li><strong>Certain US states<\/strong> &#8211; Some states (e.g., New York, Florida, Rhode Island) have additional registration or bonding requirements for high-value sweepstakes. You can exclude specific states using state-level targeting.<\/li>\n<\/ul>\n\n\n\n<p><strong>Note:<\/strong> Always consult with a legal professional to ensure your giveaway complies with local laws in your target regions.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Combining with Other Security Settings<\/strong><\/h2>\n\n\n\n<p>Geo-targeting works best when combined with other security features:<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th>Setting<\/th><th>Why Combine<\/th><\/tr><\/thead><tbody><tr><td><strong>Block VPNs<\/strong><\/td><td>Prevents users from bypassing geo-restrictions with a VPN<\/td><\/tr><tr><td><strong>Anti-spam settings<\/strong><\/td><td>Adds device fingerprinting on top of location checks<\/td><\/tr><tr><td><strong>Email verification<\/strong><\/td><td>Adds an extra layer of identity verification<\/td><\/tr><tr><td><strong>Block disposable emails<\/strong><\/td><td>Prevents temporary email abuse from any location<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Best Practices<\/strong><\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Clearly state eligibility<\/strong> &#8211; Mention country and state restrictions in your giveaway rules<\/li>\n\n\n\n<li><strong>Use Block mode for few exclusions<\/strong> &#8211; If you only need to exclude 1-2 countries, Block mode is simpler than listing every allowed country<\/li>\n\n\n\n<li><strong>Test from restricted regions<\/strong> &#8211; Use a VPN to verify the blocking message appears correctly<\/li>\n\n\n\n<li><strong>Consider your audience<\/strong> &#8211; Only restrict if legally or logistically necessary<\/li>\n\n\n\n<li><strong>Enable Block VPNs<\/strong> &#8211; For stronger enforcement, enable VPN blocking alongside geo-targeting<\/li>\n\n\n\n<li><strong>Use state-level targeting for compliance<\/strong> &#8211; Exclude specific states like Quebec or New York instead of blocking the entire country<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Troubleshooting<\/strong><\/h2>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Users from allowed locations being blocked<\/strong><\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>The user may be using a VPN that shows a different location<\/li>\n\n\n\n<li>Their ISP may route traffic through a server in a different country<\/li>\n\n\n\n<li>For state-level restrictions, the region detection may occasionally be inaccurate. Consider allowing the entire country if state-level accuracy is a concern.<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Users from restricted locations getting through<\/strong><\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>They may be using a VPN to appear from an allowed location. Enable <strong>Block VPNs<\/strong> to mitigate this.<\/li>\n\n\n\n<li>Server-side enforcement catches most bypass attempts, but VPN traffic can still mask the true location.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Plan Requirements<\/strong><\/h2>\n\n\n\n<p>Geo-targeting is available on <strong>Premium<\/strong> and <strong>Enterprise<\/strong> plans. On lower plans, the geo-targeting option will show a &#8220;Premium&#8221; badge indicating an upgrade is needed.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Notes<\/strong><\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Geo-targeting is enforced both when the widget loads and on the server when a user logs in or submits an entry<\/li>\n\n\n\n<li>Users with VPNs may bypass geographic restrictions. Combine with VPN blocking for best results.<\/li>\n\n\n\n<li>You can change geo-targeting settings at any time, even after the giveaway starts<\/li>\n\n\n\n<li>State\/province targeting is available for 7 countries (US, CA, UK, AU, BR, IN, DE). For all other countries, targeting is at the country level.<\/li>\n\n\n\n<li>If a user&#8217;s state cannot be determined, the system will still enforce the country-level restriction<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Geo-targeting lets you control which countries (and even states\/provinces) can enter your giveaway. You can either allow only specific locations or block specific locations from entering. This is essential for legal compliance, shipping limitations, or region-specific promotions. Why Use Geo-Targeting How to Set Up Geo-Targeting Step 1: Go to Security Settings Step 2: Enable Geo-Targeting Check the box labeled &#8220;Enable geo-targeting&#8221;. Step 3: Choose Allow or Block Mode Select one of the two modes: Mode Use Case Only allow You know exactly which countries should be eligible (e.g., US-only sweepstakes) Block You want to run a worldwide giveaway but need to exclude specific countries for legal reasons Step 4: Select Countries Use the search field to find and select countries: You can add as many countries as you need. The full list includes all 249 internationally recognized countries and territories. Step 5: Select States\/Provinces (Optional) For supported countries, you can restrict entries down to the state or province level. When you select one of the following countries, a state\/province section automatically appears below with checkboxes: Country Regions Available United States 50 states + District of Columbia Canada 13 provinces and territories United Kingdom 4 nations (England, Northern Ireland, Scotland, Wales) Australia 8 states and territories Brazil 27 states India 36 states and union territories Germany 16 federal states By default, all states\/provinces are selected when you add a supported country. To restrict to specific states: For countries not in the list above, geo-targeting works at the country level only. Step 6: Save Your Changes Click Save &amp; Publish to apply the geo-targeting restrictions. What Blocked Users See When someone from a restricted location visits your giveaway, they see the message: &#8220;This location is not allowed to enter.&#8221; The giveaway details (title, description, countdown, prize info) are still visible, but the entry form and entry methods are hidden. How Geo-Targeting Works Aspect Details Detection method IP-based geolocation via Cloudflare Country accuracy Highly accurate at the country level State\/province accuracy Generally accurate, but may vary in some regions Enforcement Both client-side (widget) and server-side (login and entry submission) VPN users May appear from a different location. Combine with &#8220;Block VPNs&#8221; for stronger enforcement. SweepWidget enforces geo-targeting at multiple points: For state-level restrictions, if the visitor&#8217;s state cannot be determined, the system falls back to country-level enforcement only. This means the country restriction is always enforced, but state-level checks are skipped if region data is unavailable. Common Country Combinations Region Countries North America United States, Canada, Mexico English-speaking United States, Canada, United Kingdom, Australia, New Zealand, Ireland European Union Germany, France, Italy, Spain, Netherlands, Belgium, Austria, Portugal, Greece, Poland (and others) Scandinavia Sweden, Norway, Denmark, Finland DACH region Germany, Austria, Switzerland Latin America Mexico, Brazil, Argentina, Colombia, Chile, Peru Asia Pacific Australia, New Zealand, Japan, South Korea, Singapore Use Cases Scenario Mode Configuration US-only sweepstakes Allow Allow United States only US sweepstakes excluding void states Allow Allow United States, then uncheck void states (e.g., New York, Florida) Worldwide except restricted countries Block Block countries with strict contest laws (e.g., Belgium, Italy) Canada excluding Quebec Allow Allow Canada, then uncheck Quebec in the province list UK product launch Allow Allow United Kingdom only Physical prize shipping Allow Allow only countries you can affordably ship to Service availability Allow Allow only countries where your service operates Legal Considerations Some countries and regions have strict laws regarding giveaways and sweepstakes: Note: Always consult with a legal professional to ensure your giveaway complies with local laws in your target regions. Combining with Other Security Settings Geo-targeting works best when combined with other security features: Setting Why Combine Block VPNs Prevents users from bypassing geo-restrictions with a VPN Anti-spam settings Adds device fingerprinting on top of location checks Email verification Adds an extra layer of identity verification Block disposable emails Prevents temporary email abuse from any location Best Practices Troubleshooting Users from allowed locations being blocked Users from restricted locations getting through Plan Requirements Geo-targeting is available on Premium and Enterprise plans. On lower plans, the geo-targeting option will show a &#8220;Premium&#8221; badge indicating an upgrade is needed. Notes<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-31","post","type-post","status-publish","format-standard","hentry","category-how-to"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.3 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>SweepWidget Geo-targeting: Restrict Users By Country<\/title>\n<meta name=\"description\" content=\"With SweepWidget geo-targeting, you can restrict users based on the country they are located in (ip address detection is used).\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/sweepwidget.com\/docs\/geo-targeting-restrict-users-by-country\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"SweepWidget Geo-targeting: Restrict Users By Country\" \/>\n<meta property=\"og:description\" content=\"With SweepWidget geo-targeting, you can restrict users based on the country they are located in (ip address detection is used).\" \/>\n<meta property=\"og:url\" content=\"https:\/\/sweepwidget.com\/docs\/geo-targeting-restrict-users-by-country\" \/>\n<meta property=\"og:site_name\" content=\"SweepWidget Help Docs\" \/>\n<meta property=\"article:published_time\" content=\"2020-05-07T00:06:48+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-03-06T19:40:12+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/sweepwidget.com\/docs\/wp-content\/uploads\/2020\/05\/geo-targeting-1.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"418\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"SweepWidget\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"SweepWidget\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"6 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/sweepwidget.com\\\/docs\\\/geo-targeting-restrict-users-by-country#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/sweepwidget.com\\\/docs\\\/geo-targeting-restrict-users-by-country\"},\"author\":{\"name\":\"SweepWidget\",\"@id\":\"https:\\\/\\\/sweepwidget.com\\\/docs\\\/#\\\/schema\\\/person\\\/4cca2bc9c600116750eca1bfff6648e0\"},\"headline\":\"Geo-Targeting: Restrict Entries by Country and State\",\"datePublished\":\"2020-05-07T00:06:48+00:00\",\"dateModified\":\"2026-03-06T19:40:12+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/sweepwidget.com\\\/docs\\\/geo-targeting-restrict-users-by-country\"},\"wordCount\":1246,\"commentCount\":0,\"image\":{\"@id\":\"https:\\\/\\\/sweepwidget.com\\\/docs\\\/geo-targeting-restrict-users-by-country#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/sweepwidget.com\\\/docs\\\/wp-content\\\/uploads\\\/2020\\\/05\\\/geo-targeting-1-1024x357.png\",\"articleSection\":[\"How To\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/sweepwidget.com\\\/docs\\\/geo-targeting-restrict-users-by-country\",\"url\":\"https:\\\/\\\/sweepwidget.com\\\/docs\\\/geo-targeting-restrict-users-by-country\",\"name\":\"SweepWidget Geo-targeting: Restrict Users By Country\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/sweepwidget.com\\\/docs\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/sweepwidget.com\\\/docs\\\/geo-targeting-restrict-users-by-country#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/sweepwidget.com\\\/docs\\\/geo-targeting-restrict-users-by-country#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/sweepwidget.com\\\/docs\\\/wp-content\\\/uploads\\\/2020\\\/05\\\/geo-targeting-1-1024x357.png\",\"datePublished\":\"2020-05-07T00:06:48+00:00\",\"dateModified\":\"2026-03-06T19:40:12+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/sweepwidget.com\\\/docs\\\/#\\\/schema\\\/person\\\/4cca2bc9c600116750eca1bfff6648e0\"},\"description\":\"With SweepWidget geo-targeting, you can restrict users based on the country they are located in (ip address detection is used).\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/sweepwidget.com\\\/docs\\\/geo-targeting-restrict-users-by-country#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/sweepwidget.com\\\/docs\\\/geo-targeting-restrict-users-by-country\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/sweepwidget.com\\\/docs\\\/geo-targeting-restrict-users-by-country#primaryimage\",\"url\":\"https:\\\/\\\/sweepwidget.com\\\/docs\\\/wp-content\\\/uploads\\\/2020\\\/05\\\/geo-targeting-1.png\",\"contentUrl\":\"https:\\\/\\\/sweepwidget.com\\\/docs\\\/wp-content\\\/uploads\\\/2020\\\/05\\\/geo-targeting-1.png\",\"width\":1200,\"height\":418},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/sweepwidget.com\\\/docs\\\/geo-targeting-restrict-users-by-country#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/sweepwidget.com\\\/docs\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Geo-Targeting: Restrict Entries by Country and State\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/sweepwidget.com\\\/docs\\\/#website\",\"url\":\"https:\\\/\\\/sweepwidget.com\\\/docs\\\/\",\"name\":\"SweepWidget Help Docs\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/sweepwidget.com\\\/docs\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/sweepwidget.com\\\/docs\\\/#\\\/schema\\\/person\\\/4cca2bc9c600116750eca1bfff6648e0\",\"name\":\"SweepWidget\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/08ae098bc2290a9a645af1c26ddd7704f98d09c88bf65a55b5c4bc1e585f31f4?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/08ae098bc2290a9a645af1c26ddd7704f98d09c88bf65a55b5c4bc1e585f31f4?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/08ae098bc2290a9a645af1c26ddd7704f98d09c88bf65a55b5c4bc1e585f31f4?s=96&d=mm&r=g\",\"caption\":\"SweepWidget\"},\"sameAs\":[\"https:\\\/\\\/sweepwidget.com\\\/docs\"],\"url\":\"https:\\\/\\\/sweepwidget.com\\\/docs\\\/author\\\/sweepwidget\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"SweepWidget Geo-targeting: Restrict Users By Country","description":"With SweepWidget geo-targeting, you can restrict users based on the country they are located in (ip address detection is used).","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/sweepwidget.com\/docs\/geo-targeting-restrict-users-by-country","og_locale":"en_US","og_type":"article","og_title":"SweepWidget Geo-targeting: Restrict Users By Country","og_description":"With SweepWidget geo-targeting, you can restrict users based on the country they are located in (ip address detection is used).","og_url":"https:\/\/sweepwidget.com\/docs\/geo-targeting-restrict-users-by-country","og_site_name":"SweepWidget Help Docs","article_published_time":"2020-05-07T00:06:48+00:00","article_modified_time":"2026-03-06T19:40:12+00:00","og_image":[{"width":1200,"height":418,"url":"https:\/\/sweepwidget.com\/docs\/wp-content\/uploads\/2020\/05\/geo-targeting-1.png","type":"image\/png"}],"author":"SweepWidget","twitter_card":"summary_large_image","twitter_misc":{"Written by":"SweepWidget","Est. reading time":"6 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/sweepwidget.com\/docs\/geo-targeting-restrict-users-by-country#article","isPartOf":{"@id":"https:\/\/sweepwidget.com\/docs\/geo-targeting-restrict-users-by-country"},"author":{"name":"SweepWidget","@id":"https:\/\/sweepwidget.com\/docs\/#\/schema\/person\/4cca2bc9c600116750eca1bfff6648e0"},"headline":"Geo-Targeting: Restrict Entries by Country and State","datePublished":"2020-05-07T00:06:48+00:00","dateModified":"2026-03-06T19:40:12+00:00","mainEntityOfPage":{"@id":"https:\/\/sweepwidget.com\/docs\/geo-targeting-restrict-users-by-country"},"wordCount":1246,"commentCount":0,"image":{"@id":"https:\/\/sweepwidget.com\/docs\/geo-targeting-restrict-users-by-country#primaryimage"},"thumbnailUrl":"https:\/\/sweepwidget.com\/docs\/wp-content\/uploads\/2020\/05\/geo-targeting-1-1024x357.png","articleSection":["How To"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/sweepwidget.com\/docs\/geo-targeting-restrict-users-by-country","url":"https:\/\/sweepwidget.com\/docs\/geo-targeting-restrict-users-by-country","name":"SweepWidget Geo-targeting: Restrict Users By Country","isPartOf":{"@id":"https:\/\/sweepwidget.com\/docs\/#website"},"primaryImageOfPage":{"@id":"https:\/\/sweepwidget.com\/docs\/geo-targeting-restrict-users-by-country#primaryimage"},"image":{"@id":"https:\/\/sweepwidget.com\/docs\/geo-targeting-restrict-users-by-country#primaryimage"},"thumbnailUrl":"https:\/\/sweepwidget.com\/docs\/wp-content\/uploads\/2020\/05\/geo-targeting-1-1024x357.png","datePublished":"2020-05-07T00:06:48+00:00","dateModified":"2026-03-06T19:40:12+00:00","author":{"@id":"https:\/\/sweepwidget.com\/docs\/#\/schema\/person\/4cca2bc9c600116750eca1bfff6648e0"},"description":"With SweepWidget geo-targeting, you can restrict users based on the country they are located in (ip address detection is used).","breadcrumb":{"@id":"https:\/\/sweepwidget.com\/docs\/geo-targeting-restrict-users-by-country#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/sweepwidget.com\/docs\/geo-targeting-restrict-users-by-country"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/sweepwidget.com\/docs\/geo-targeting-restrict-users-by-country#primaryimage","url":"https:\/\/sweepwidget.com\/docs\/wp-content\/uploads\/2020\/05\/geo-targeting-1.png","contentUrl":"https:\/\/sweepwidget.com\/docs\/wp-content\/uploads\/2020\/05\/geo-targeting-1.png","width":1200,"height":418},{"@type":"BreadcrumbList","@id":"https:\/\/sweepwidget.com\/docs\/geo-targeting-restrict-users-by-country#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/sweepwidget.com\/docs\/"},{"@type":"ListItem","position":2,"name":"Geo-Targeting: Restrict Entries by Country and State"}]},{"@type":"WebSite","@id":"https:\/\/sweepwidget.com\/docs\/#website","url":"https:\/\/sweepwidget.com\/docs\/","name":"SweepWidget Help Docs","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/sweepwidget.com\/docs\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/sweepwidget.com\/docs\/#\/schema\/person\/4cca2bc9c600116750eca1bfff6648e0","name":"SweepWidget","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/08ae098bc2290a9a645af1c26ddd7704f98d09c88bf65a55b5c4bc1e585f31f4?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/08ae098bc2290a9a645af1c26ddd7704f98d09c88bf65a55b5c4bc1e585f31f4?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/08ae098bc2290a9a645af1c26ddd7704f98d09c88bf65a55b5c4bc1e585f31f4?s=96&d=mm&r=g","caption":"SweepWidget"},"sameAs":["https:\/\/sweepwidget.com\/docs"],"url":"https:\/\/sweepwidget.com\/docs\/author\/sweepwidget"}]}},"_links":{"self":[{"href":"https:\/\/sweepwidget.com\/docs\/wp-json\/wp\/v2\/posts\/31","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sweepwidget.com\/docs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sweepwidget.com\/docs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sweepwidget.com\/docs\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/sweepwidget.com\/docs\/wp-json\/wp\/v2\/comments?post=31"}],"version-history":[{"count":14,"href":"https:\/\/sweepwidget.com\/docs\/wp-json\/wp\/v2\/posts\/31\/revisions"}],"predecessor-version":[{"id":7701,"href":"https:\/\/sweepwidget.com\/docs\/wp-json\/wp\/v2\/posts\/31\/revisions\/7701"}],"wp:attachment":[{"href":"https:\/\/sweepwidget.com\/docs\/wp-json\/wp\/v2\/media?parent=31"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sweepwidget.com\/docs\/wp-json\/wp\/v2\/categories?post=31"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sweepwidget.com\/docs\/wp-json\/wp\/v2\/tags?post=31"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}