What terrastamp is
terrastamp tells your site which country a visitor is in, and which US state inside the United States. It does this by looking for a consensus among several signals that agree, and issues a signed stamp with the result.
The stamp is stored as a terrastamp cookie on your domain, so your server receives it with every
request.
terrastamp resolves a visitor to a region: a US state inside the United States, a country elsewhere.
Every stamp is either consensus, with the signals that agreed listed in metrics, or inconclusive,
with a reason. Your code decides what to do with each.
Out of scope
Section titled “Out of scope”terrastamp is not a fraud or VPN detector: it looks for signals that agree, and doesn’t try to catch someone who works to hide where they are. It isn’t precise location either, since it answers “which state or country”, never “where exactly”. And it isn’t fingerprinting: it doesn’t identify visitors or track them across sites.
How the pieces fit
Section titled “How the pieces fit”A check involves your page, terrastamp and your server, in four steps:
- Your page loads terrastamp’s script with your site key.
- The script gathers the signals the browser can offer, asks the browser for an approximate location
when a new stamp is needed, and sends them to
api.terrastamp.dev. - terrastamp compares the signals and returns a signed stamp. The script stores it as the
terrastampcookie. - Your server verifies the cookie with terrastamp’s public keys and your secret binding key, then branches on the result.
Next: Getting started.