{"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-11-19T10:32:02","modified_gmt":"2026-11-19T10:32:02","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":"<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 countries from entering. This is useful for legal compliance, shipping limitations, or region-specific promotions.<\/p>\n<h2 id=\"why-use-geo-targeting\">Why Use Geo-Targeting<\/h2>\n<ul>\n<li>Legal requirements \u2013 Some countries have strict giveaway\/sweepstakes laws<\/li>\n<li>Shipping limitations \u2013 Physical prizes can only be shipped to certain regions<\/li>\n<li>Regional promotions \u2013 Target specific markets for localized campaigns<\/li>\n<li>Sponsor requirements \u2013 Sponsors may require geographic restrictions<\/li>\n<li>Currency\/payment limitations \u2013 Gift cards or vouchers may only work in certain countries<\/li>\n<li>State-level compliance \u2013 Some regions have specific contest laws<\/li>\n<\/ul>\n<h2 id=\"how-to-set-up-geo-targeting\">How to Set Up Geo-Targeting<\/h2>\n<h3 id=\"step-1-open-the-security-tab\">Step 1: Open the Security tab<\/h3>\n<ul>\n<li>Create or edit a giveaway<\/li>\n<li>Click on the <strong>Security<\/strong> tab in the left sidebar<\/li>\n<\/ul>\n<h3 id=\"step-2-enable-geo-targeting\">Step 2: Enable Geo-Targeting<\/h3>\n<p>Check the box labeled <strong>Enable geo-targeting<\/strong>.<\/p>\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<h3 id=\"step-3-choose-allow-or-block-mode\">Step 3: Choose Allow or Block Mode<\/h3>\n<p>Select one of the two modes:<\/p>\n<ul>\n<li><strong>Only allow these locations<\/strong> \u2013 Only participants from the countries (and states) you select can enter. Everyone else is blocked.<\/li>\n<li><strong>Block these locations<\/strong> \u2013 Everyone can enter except participants from the countries you select. Block mode works on whole countries.<\/li>\n<\/ul>\n<figure class=\"wp-block-table\">\n<table>\n<thead>\n<tr>\n<th>Mode<\/th>\n<th>Use Case<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>Only allow<\/td>\n<td>You know exactly which countries should be eligible (e.g., US-only sweepstakes), or you need to leave out some states<\/td>\n<\/tr>\n<tr>\n<td>Block<\/td>\n<td>You want to run a worldwide giveaway but need to exclude specific countries<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/figure>\n<h3 id=\"step-4-select-countries\">Step 4: Select Countries<\/h3>\n<p>Use the search field to find and select countries:<\/p>\n<ul>\n<li>Type a country name in the &#8220;Search countries&#8230;&#8221; field<\/li>\n<li>Click a country from the dropdown to add it<\/li>\n<li>Selected countries appear as blue pill badges above the search field<\/li>\n<li>Click the x on any pill to remove that country<\/li>\n<\/ul>\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<p>You can add as many countries as you need. The list includes every country and territory.<\/p>\n<h3 id=\"step-5-select-statesprovinces-optional-only-allow-mode\">Step 5: Select States\/Provinces (Optional, &#8220;Only allow&#8221; mode)<\/h3>\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<figure class=\"wp-block-table\">\n<table>\n<thead>\n<tr>\n<th>Country<\/th>\n<th>Regions Available<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>United States<\/td>\n<td>50 states + District of Columbia<\/td>\n<\/tr>\n<tr>\n<td>Canada<\/td>\n<td>13 provinces and territories<\/td>\n<\/tr>\n<tr>\n<td>United Kingdom<\/td>\n<td>4 nations (England, Northern Ireland, Scotland, Wales)<\/td>\n<\/tr>\n<tr>\n<td>Australia<\/td>\n<td>8 states and territories<\/td>\n<\/tr>\n<tr>\n<td>Brazil<\/td>\n<td>27 states<\/td>\n<\/tr>\n<tr>\n<td>India<\/td>\n<td>36 states and union territories<\/td>\n<\/tr>\n<tr>\n<td>Germany<\/td>\n<td>16 federal states<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/figure>\n<p>By default, all states\/provinces are selected when you add a supported country. To restrict to specific states:<\/p>\n<ul>\n<li>Uncheck the &#8220;All&#8221; checkbox next to the country name<\/li>\n<li>Tick only the states\/provinces that may enter<\/li>\n<\/ul>\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<p>State selections only apply in <strong>Only allow these locations<\/strong> mode. In <strong>Block these locations<\/strong> mode, adding a country blocks the whole country, whatever states are ticked. To leave out a few states (for example New York), use Only allow mode, add the country and untick those states.<\/p>\n<p>If you untick every state of a country, it is saved as the whole country.<\/p>\n<p>For countries not in the list above, geo-targeting works at the country level only.<\/p>\n<h3 id=\"step-6-save-your-changes\">Step 6: Save Your Changes<\/h3>\n<p>Click <strong>Save &amp; Publish<\/strong> to apply the geo-targeting restrictions.<\/p>\n<h2 id=\"what-blocked-users-see\">What Blocked Users See<\/h2>\n<p>When someone from a restricted location visits your giveaway, they see the message:<\/p>\n<p>&#8220;This location is not allowed to enter.&#8221;<\/p>\n<p>The giveaway details (title, description, countdown, prize info) are still visible, but the entry form and entry methods are hidden. If someone gets past this (for example from an old open page), their login or entry is refused with &#8220;This entry has been flagged by our anti-spam system. (210)&#8221;.<\/p>\n<p>The location check also applies to you. To test the widget as an entrant from outside your eligible area, use a connection in an allowed location.<\/p>\n<h2 id=\"how-geo-targeting-works\">How Geo-Targeting Works<\/h2>\n<figure class=\"wp-block-table\">\n<table>\n<thead>\n<tr>\n<th>Aspect<\/th>\n<th>Details<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>Detection method<\/td>\n<td>IP-based geolocation via Cloudflare<\/td>\n<\/tr>\n<tr>\n<td>Country accuracy<\/td>\n<td>Highly accurate at the country level<\/td>\n<\/tr>\n<tr>\n<td>State\/province accuracy<\/td>\n<td>Generally accurate, but may vary in some regions<\/td>\n<\/tr>\n<tr>\n<td>Enforcement<\/td>\n<td>Both client-side (widget) and server-side (login and entry submission)<\/td>\n<\/tr>\n<tr>\n<td>VPN users<\/td>\n<td>May appear from a different location. Combine with &#8220;Block VPN&#8217;s&#8221; for stronger enforcement.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/figure>\n<p>SweepWidget enforces geo-targeting at multiple points:<\/p>\n<ul>\n<li>Widget load \u2013 The giveaway widget checks the visitor&#8217;s location when it loads and hides the entry form if they are restricted.<\/li>\n<li>Login\/entry submission \u2013 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<\/ul>\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<h2 id=\"common-country-combinations\">Common Country Combinations<\/h2>\n<figure class=\"wp-block-table\">\n<table>\n<thead>\n<tr>\n<th>Region<\/th>\n<th>Countries<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>North America<\/td>\n<td>United States, Canada, Mexico<\/td>\n<\/tr>\n<tr>\n<td>English-speaking<\/td>\n<td>United States, Canada, United Kingdom, Australia, New Zealand, Ireland<\/td>\n<\/tr>\n<tr>\n<td>European Union<\/td>\n<td>Germany, France, Italy, Spain, Netherlands, Belgium, Austria, Portugal, Greece, Poland (and others)<\/td>\n<\/tr>\n<tr>\n<td>Scandinavia<\/td>\n<td>Sweden, Norway, Denmark, Finland<\/td>\n<\/tr>\n<tr>\n<td>DACH region<\/td>\n<td>Germany, Austria, Switzerland<\/td>\n<\/tr>\n<tr>\n<td>Latin America<\/td>\n<td>Mexico, Brazil, Argentina, Colombia, Chile, Peru<\/td>\n<\/tr>\n<tr>\n<td>Asia Pacific<\/td>\n<td>Australia, New Zealand, Japan, South Korea, Singapore<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/figure>\n<h2 id=\"use-cases\">Use Cases<\/h2>\n<figure class=\"wp-block-table\">\n<table>\n<thead>\n<tr>\n<th>Scenario<\/th>\n<th>Mode<\/th>\n<th>Configuration<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>US-only sweepstakes<\/td>\n<td>Allow<\/td>\n<td>Allow United States only<\/td>\n<\/tr>\n<tr>\n<td>US sweepstakes excluding some states<\/td>\n<td>Allow<\/td>\n<td>Allow United States, then untick those states<\/td>\n<\/tr>\n<tr>\n<td>Worldwide except some countries<\/td>\n<td>Block<\/td>\n<td>Block those countries<\/td>\n<\/tr>\n<tr>\n<td>Canada excluding Quebec<\/td>\n<td>Allow<\/td>\n<td>Allow Canada, then untick Quebec in the province list<\/td>\n<\/tr>\n<tr>\n<td>UK product launch<\/td>\n<td>Allow<\/td>\n<td>Allow United Kingdom only<\/td>\n<\/tr>\n<tr>\n<td>Physical prize shipping<\/td>\n<td>Allow<\/td>\n<td>Allow only countries you can affordably ship to<\/td>\n<\/tr>\n<tr>\n<td>Service availability<\/td>\n<td>Allow<\/td>\n<td>Allow only countries where your service operates<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/figure>\n<h2 id=\"legal-considerations\">Legal Considerations<\/h2>\n<p>Contest laws differ by country, state and province, and some places require registration, bonding or approval for certain promotions. SweepWidget can&#8217;t advise on which laws apply to your giveaway. Always consult a legal professional, then use geo-targeting to leave out the places you can&#8217;t run in.<\/p>\n<h2 id=\"combining-with-other-security-settings\">Combining with Other Security Settings<\/h2>\n<figure class=\"wp-block-table\">\n<table>\n<thead>\n<tr>\n<th>Setting<\/th>\n<th>Why Combine<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>Block VPN&#8217;s<\/td>\n<td>Makes it harder to bypass geo-restrictions with a VPN<\/td>\n<\/tr>\n<tr>\n<td>Anti-spam protection level<\/td>\n<td>Adds device fingerprinting on top of location checks<\/td>\n<\/tr>\n<tr>\n<td>Email verification<\/td>\n<td>Adds an extra layer of identity verification<\/td>\n<\/tr>\n<tr>\n<td>Disposable email blocking (always on)<\/td>\n<td>Prevents temporary email abuse from any location<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/figure>\n<h2 id=\"best-practices\">Best Practices<\/h2>\n<ul>\n<li>Clearly state eligibility \u2013 Mention country and state restrictions in your giveaway rules<\/li>\n<li>Use Block mode for few exclusions \u2013 If you only need to exclude 1-2 countries, Block mode is simpler than listing every allowed country<\/li>\n<li>Use Only allow mode for state-level rules \u2013 Untick the states you need to leave out<\/li>\n<li>Consider your audience \u2013 Only restrict if legally or logistically necessary<\/li>\n<li>Enable Block VPN&#8217;s \u2013 For stronger enforcement, enable VPN blocking alongside geo-targeting<\/li>\n<\/ul>\n<h2 id=\"troubleshooting\">Troubleshooting<\/h2>\n<h3 id=\"users-from-allowed-locations-being-blocked\">Users from allowed locations being blocked<\/h3>\n<ul>\n<li>The user may be using a VPN that shows a different location<\/li>\n<li>Their ISP may route traffic through a server in a different country<\/li>\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<h3 id=\"users-from-restricted-locations-getting-through\">Users from restricted locations getting through<\/h3>\n<ul>\n<li>They may be using a VPN to appear from an allowed location. Enable Block VPN&#8217;s to reduce this.<\/li>\n<li>Server-side enforcement catches most bypass attempts, but VPN traffic can still mask the true location.<\/li>\n<\/ul>\n<h2 id=\"plan-requirements\">Plan Requirements<\/h2>\n<p>Geo-targeting is available on Premium and Enterprise plans. On lower plans, the geo-targeting option shows a &#8220;Premium&#8221; badge indicating an upgrade is needed.<\/p>\n<h2 id=\"notes\">Notes<\/h2>\n<ul>\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<li>Users with VPNs may bypass geographic restrictions. Combine with VPN blocking for best results.<\/li>\n<li>You can change geo-targeting settings at any time, even after the giveaway starts<\/li>\n<li>State\/province targeting is available for 7 countries (US, CA, UK, AU, BR, IN, DE) in Only allow mode. For all other countries, targeting is at the country level.<\/li>\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 countries from entering. This is useful for legal compliance, shipping limitations, or region-specific promotions. Why Use Geo-Targeting Legal requirements \u2013 Some countries have strict giveaway\/sweepstakes laws Shipping limitations \u2013 Physical prizes can only be shipped to certain regions Regional promotions \u2013 Target specific markets for localized campaigns Sponsor requirements \u2013 Sponsors may require geographic restrictions Currency\/payment limitations \u2013 Gift cards or vouchers may only work in certain countries State-level compliance \u2013 Some regions have specific contest laws How to Set Up Geo-Targeting Step 1: Open the Security tab Create or edit a giveaway Click on the Security tab in the left sidebar Step 2: Enable Geo-Targeting Check the box labeled Enable geo-targeting. Step 3: Choose Allow or Block Mode Select one of the two modes: Only allow these locations \u2013 Only participants from the countries (and states) you select can enter. Everyone else is blocked. Block these locations \u2013 Everyone can enter except participants from the countries you select. Block mode works on whole countries. Mode Use Case Only allow You know exactly which countries should be eligible (e.g., US-only sweepstakes), or you need to leave out some states Block You want to run a worldwide giveaway but need to exclude specific countries Step 4: Select Countries Use the search field to find and select countries: Type a country name in the &#8220;Search countries&#8230;&#8221; field Click a country from the dropdown to add it Selected countries appear as blue pill badges above the search field Click the x on any pill to remove that country You can add as many countries as you need. The list includes every country and territory. Step 5: Select States\/Provinces (Optional, &#8220;Only allow&#8221; mode) 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: Uncheck the &#8220;All&#8221; checkbox next to the country name Tick only the states\/provinces that may enter State selections only apply in Only allow these locations mode. In Block these locations mode, adding a country blocks the whole country, whatever states are ticked. To leave out a few states (for example New York), use Only allow mode, add the country and untick those states. If you untick every state of a country, it is saved as the whole country. 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. If someone gets past this (for example from an old open page), their login or entry is refused with &#8220;This entry has been flagged by our anti-spam system. (210)&#8221;. The location check also applies to you. To test the widget as an entrant from outside your eligible area, use a connection in an allowed location. 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 VPN&#8217;s&#8221; for stronger enforcement. SweepWidget enforces geo-targeting at multiple points: Widget load \u2013 The giveaway widget checks the visitor&#8217;s location when it loads and hides the entry form if they are restricted. Login\/entry submission \u2013 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. 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 some states Allow Allow United States, then untick those states Worldwide except some countries Block Block those countries Canada excluding Quebec Allow Allow Canada, then untick 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 Contest laws differ by country, state and province, and some places require registration, bonding or approval for certain promotions. SweepWidget can&#8217;t advise on which laws apply to your giveaway. Always consult a legal professional, then use geo-targeting to leave out the places you can&#8217;t run in. Combining with Other Security Settings Setting Why Combine Block VPN&#8217;s Makes it harder to bypass geo-restrictions with a VPN Anti-spam protection level Adds device fingerprinting on top of location checks Email verification Adds an extra layer of identity verification Disposable email blocking (always on) Prevents temporary email abuse from any location Best Practices Clearly state eligibility \u2013 Mention country and state restrictions in your giveaway rules Use Block mode for few exclusions<\/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 v29.0 - 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-11-19T10:32:02+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-11-19T10:32:02+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/sweepwidget.com\\\/docs\\\/geo-targeting-restrict-users-by-country\"},\"wordCount\":1261,\"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-11-19T10:32:02+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\\\/d91c2f57672b440838a4205ff021607b3d77efd9ac80a80984ce065da067e51e?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/d91c2f57672b440838a4205ff021607b3d77efd9ac80a80984ce065da067e51e?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/d91c2f57672b440838a4205ff021607b3d77efd9ac80a80984ce065da067e51e?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-11-19T10:32:02+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-11-19T10:32:02+00:00","mainEntityOfPage":{"@id":"https:\/\/sweepwidget.com\/docs\/geo-targeting-restrict-users-by-country"},"wordCount":1261,"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-11-19T10:32:02+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\/d91c2f57672b440838a4205ff021607b3d77efd9ac80a80984ce065da067e51e?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/d91c2f57672b440838a4205ff021607b3d77efd9ac80a80984ce065da067e51e?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/d91c2f57672b440838a4205ff021607b3d77efd9ac80a80984ce065da067e51e?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":15,"href":"https:\/\/sweepwidget.com\/docs\/wp-json\/wp\/v2\/posts\/31\/revisions"}],"predecessor-version":[{"id":7915,"href":"https:\/\/sweepwidget.com\/docs\/wp-json\/wp\/v2\/posts\/31\/revisions\/7915"}],"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}]}}