Cross Site Verification
This guide explains how AgeGO allows verified users to be automatically recognized across multiple AgeGO-enabled sites.
It covers how verified links work, how verification tokens are generated, and how to implement cross-site verification securely and respecting regulations.
Overview
AgeGO Cross-Site Automatic Verification allows users who have already verified their age on one AgeGO-enabled site (Site A) to be automatically recognized as verified when they click on a link going to another AgeGO-enabled site (Site B).
It is designed to reduce repeated verification prompts while staying compliant and privacy-friendly.
This mechanism uses a short-lived, single-use verification token called ag_token, generated in real time when the user clicks a link or ad.
Why This Matters
Using verified links helps:
Prevent repeated age-verification flows.
Reduce friction for returning users.
Maintain regulatory compliance across linked sites.
Preserve user privacy (no third-party cookies involved).
Key Benefits
Robust by design: The verification status is not passed as “trust me.” It is validated server-side through AgeGO.
Generated in 60 seconds: Tokens are short-lived (60 seconds), so they are only useful in the exact click-through moment.
No cookies required: This mechanism does not rely on third-party cookies and can thus be used in cookie-restricted or incognito/private browsing environments.
Hard to bypass: Tokens are single-use and validated by AgeGO servers. Even if copied, they expire quickly and cannot be reused after validation.
What is a Verified Link?
A verified link is a standard website link that includes an AgeGO Verification Token (ag_token).
Example:
When a verified user clicks through from Site A to Site B, the AgeGO script on Site B reads and validates the token. If valid, the user is granted access without repeating verification.
If Site B uses a Server-to-Server integration, the AgeGO script may need to be loaded in s2sMode so the frontend can read and validate ag_token from the URL. See S2S Integration → Overlay S2S Mode.
How It Works (High-Level)
User verifies on Site A.
User clicks a link or ad going to Site B.
Site A requests a token from AgeGO.
The token is generated at the moment of the click.
Token is appended to the destination URL as ag_token.
From Site B, AgeGO validates the token.
If valid, user is instantly recognized as verified.
Security Design
Cross-site Automatic Verification includes several security safeguards:
Not proof of age: The token itself is not the proof of age. It’s a secure, single-use “ticket” that allows Site B to fetch verification status from AgeGO.
Single-use: Once successfully validated, the token is immediately invalidated and cannot be used again.
Short TTL (60 seconds): Tokens expire quickly, making them useless if copied and passed to another user.
Just-in-time generation: Created at click time; not stored long-term in the browser.
No third-party cookies: Does not depend on cross-site cookies or third-party tracking.
Implementation Options
AgeGO supports two implementation options for cross-site verification. Choose the one that best fits your setup.
If you work with an AgeGO partner integration (e.g. ExoClick), start with Option 1: Automatic Integration.
If you want to create verified links yourself, start with Option 2: Manual Integration. This option includes two approaches:
Option A for the simplest setup.
Option B for advanced or dynamic use cases.
No demo environment is required.
All examples can be tested directly on your staging or production environment.
Option 1: Automatic Integration (Recommended)
Who is This For?
Publishers using partner ad networks with direct AgeGO integration, such as ExoClick.
How Does it Work?
No manual implementation is required.
AgeGO and ExoClick handle everything automatically.
What Happens Behind the Scenes?
A partner ad is displayed on your site.
The user clicks on it.
The partner script
Detects the click on the ad.
Requests a verification token.
Adds the token to the ad’s destination URL.
The user is redirected as usual.
How Can I Enable this?
You have to contact both your AgeGO and ExoClick account manager so they enable this feature for your account.
No other action is needed.
Option 2: Manual Integration
Use this option when you want to create verified links yourself, without relying on an automatic partner integration.
Within the manual approach, AgeGO supports two implementation patterns, depending on how much control you need. AgeGO provides simple JavaScript functions to support this.
Option A: All-in-One Automatic Redirect (Easiest)
Who is this for?
Publishers who want the simplest and safest implementation.
What this does
Generates the verification token.
Append it to the destination URL.
Redirects the user automatically.
All in one step.
An optional parameter, openInNewTab, controls how the redirect is opened. By default, it is set to false, meaning the redirect occurs in the current tab. If set to true, the redirect will open in a new browser tab.
Example:Button:
Example Link:
Key Benefits
Only the destination URL needs to be replaced.
Ideal for “Continue”, “Enter”, or “Visit Site” buttons.
Recommended for most publishers.
Option B: Token-Only Generation (Advanced)
Who is this for?
Publishers with:
Custom JavaScript logic.
Dynamic pages.
Multiple verified links per page.
How it works
Your site requests a verification token from AgeGO.
The token is added to the destination URL.
The user is redirected to the destination.
If token generation fails, the user is redirected normally without interruption.
Example JavaScript:
Implementation href and button
In this example, the publisher’s script:
Requests a verification token from AgeGO.
Append the token to the destination URL if available.
Redirects the user accordingly.
Note: If token generation fails, the user is redirected normally without interruption.
Important: Intermediate Redirects
If your link passes through one or more intermediate redirects before reaching the final destination:
The ag_token must always be preserved.
✅ Correct flow: Site A → Site B → Site C (token preserved).
❌ Incorrect flow: Site A → Site B (token lost).
Losing the token invalidates the verification.
Last updated
Was this helpful?