How Sweepstakes Platforms Check Player Location

By Soap Team•

Sweepstakes rules change at the state line. A platform that serves players in some states and not others needs to know where each player is at the moment they buy coins or redeem a prize. That is what a location check does.

Why do sweepstakes platforms check player location?

Sweepstakes and social casino rules are set state by state, and several states have changed their rules recently. Each platform decides, with its legal counsel, where it will operate. A location check is how it applies that decision to every player, every time, instead of trusting the address a player typed when signing up.

For background on where sweepstakes casinos operate, see our state-by-state guide.

How does a location check work?

  1. Step 1
    Player starts a payment

    A coin purchase or a prize redemption.

  2. Step 2
    Location is requested

    From the device's own location services, with the player's permission.

  3. Step 3
    Turned into a place

    The position is matched to a state.

  4. Step 4
    Compared with your list

    The check passes if the state is one where you operate.

With Soap, the check runs inside the checkout. A failed check ends a coin purchase before it is paid; on a prize redemption, the result is recorded but does not by itself stop the payout.

Device location vs IP location

MethodWhere it comes fromStrengths and limits
Device locationThe phone or computer's location services (GPS, Wi-Fi), shared with permissionMost precise. Needs the player to allow location.
IP locationAn estimate from the player's internet connectionWorks without a prompt, but less precise, and VPNs can change it.

Soap checks location from the device first. When a player's browser shares no position, a platform can choose to have Soap fall back to the player's IP address to place them.

When should a location check run?

  • Before a coin purchase: so packages are only sold where you operate.
  • At a prize redemption: a platform can also check location when a player cashes out, so it knows where they were. That check is set per platform and does not by itself hold back the payout.
  • Not on every click: Soap reuses a recent passing check, for 30 minutes by default (each platform can set 5 to 240), so a player buying twice in a row isn't asked twice.

Your server can also look up a player's latest location check through the API, for example before opening a feature that is only available in some states.

Embedded checkouts: the most common reason location checks fail

Many platforms show the checkout inside their own site or app, in an iframe. Browsers only let a page ask for location if every frame around it allows it. If one frame doesn't, the browser refuses silently: the player never sees a location prompt, even though location is turned on in their browser.

  • Add geolocation (and payment, for Apple Pay) to the iframe's allow attribute.
  • If the checkout sits inside another frame, such as a game window, that frame needs it too, all the way up to the top page.
  • Test it in the sandbox: a coin purchase whose frame blocks location fails there the same way it would for real players.

Checklist for a sweepstakes location setup

  1. Decide, with your counsel, the states where you will operate.
  2. Run the check before coin purchases, and decide how your team will act on a failed check at redemption.
  3. Decide whether to allow an IP-based fallback when a browser shares no position.
  4. If you embed the checkout, allow geolocation on every frame around it.
  5. Tell players why you ask for location, so they say yes.
  6. Test every flow in the sandbox before going live.

FAQ

Why do sweepstakes platforms check player location?

Sweepstakes rules differ from state to state, and platforms choose where they operate. A location check confirms where a player is at the moment it matters, such as a coin purchase or a prize redemption, so the platform only serves players in the places it has chosen.

What is the difference between device location and IP location?

Device location comes from the phone or computer's own location services, the same ones maps use. IP location estimates where a player is from their internet connection. Device location is usually more precise; IP location can help when a player's browser doesn't share a position.

When should a location check run?

At the moments that matter most: before a player buys coins, and when a player redeems a prize. Soap runs the check inside the checkout. A failed check stops a coin purchase; on a redemption it records where the player was but does not by itself stop the payout. Soap reuses a recent passing check, for 30 minutes by default, so players aren't asked again and again.

Why does a location check fail inside an embedded checkout?

Browsers only let a page ask for location if every frame around it allows it. If the checkout is embedded in an iframe, that iframe, and any frame around it, must allow geolocation. Otherwise the browser refuses without showing the player a prompt.

Does a location check make a platform legal in a state?

No. A location check is a tool for applying the platform's own decisions about where it operates. Which states to serve is a decision for the platform and its legal counsel.


This article is for general information only and does not constitute legal advice. Consult qualified counsel about the rules in each state.