Geo-Targeting: Restrict Entries by Country and State
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 – Some countries have strict giveaway/sweepstakes laws
- Shipping limitations – Physical prizes can only be shipped to certain regions
- Regional promotions – Target specific markets for localized campaigns
- Sponsor requirements – Sponsors may require geographic restrictions
- Currency/payment limitations – Gift cards or vouchers may only work in certain countries
- State-level compliance – 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 – Only participants from the countries (and states) you select can enter. Everyone else is blocked.
- Block these locations – 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 “Search countries…” 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, “Only allow” 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 “All” 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 & Publish to apply the geo-targeting restrictions.
What Blocked Users See
When someone from a restricted location visits your giveaway, they see the message:
“This location is not allowed to enter.”
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 “This entry has been flagged by our anti-spam system. (210)”.
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 “Block VPN’s” for stronger enforcement. |
SweepWidget enforces geo-targeting at multiple points:
- Widget load – The giveaway widget checks the visitor’s location when it loads and hides the entry form if they are restricted.
- Login/entry submission – The server verifies the user’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’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’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’t run in.
Combining with Other Security Settings
| Setting | Why Combine |
|---|---|
| Block VPN’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 – Mention country and state restrictions in your giveaway rules
- Use Block mode for few exclusions – If you only need to exclude 1-2 countries, Block mode is simpler than listing every allowed country
- Use Only allow mode for state-level rules – Untick the states you need to leave out
- Consider your audience – Only restrict if legally or logistically necessary
- Enable Block VPN’s – For stronger enforcement, enable VPN blocking alongside geo-targeting
Troubleshooting
Users from allowed locations being blocked
- The user may be using a VPN that shows a different location
- Their ISP may route traffic through a server in a different country
- For state-level restrictions, the region detection may occasionally be inaccurate. Consider allowing the entire country if state-level accuracy is a concern.
Users from restricted locations getting through
- They may be using a VPN to appear from an allowed location. Enable Block VPN’s to reduce this.
- Server-side enforcement catches most bypass attempts, but VPN traffic can still mask the true location.
Plan Requirements
Geo-targeting is available on Premium and Enterprise plans. On lower plans, the geo-targeting option shows a “Premium” badge indicating an upgrade is needed.
Notes
- Geo-targeting is enforced both when the widget loads and on the server when a user logs in or submits an entry
- Users with VPNs may bypass geographic restrictions. Combine with VPN blocking for best results.
- You can change geo-targeting settings at any time, even after the giveaway starts
- 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.
- If a user’s state cannot be determined, the system will still enforce the country-level restriction