The ComplyAge Age Gate is a free JavaScript widget. It shields the page the moment it loads, asks ComplyAge which rule applies to the visitor's region — allow, verify, or deny — and either reveals the page, opens a verification window, or blocks access. Verified visitors receive a signed pass so they are not re-checked on every visit.
How it works
Passes, not tracking
Region rules you control
- Allow — no gate for this region
- Verify — the visitor must complete an accepted verification method
- Deny — access is blocked for this region
What it costs
Fails open, not shut
Search engines and the gate
Install in three steps
-
Create an integration
Sign up, create an integration for your site, and copy its public key from the Age Gate tab. Test keys and live keys are separate, so you can wire the gate on staging first.
-
Add the script tag
Place it in <head> so the shield is drawn before your content paints. The script is dependency-free and a few kilobytes; it is served with a short cache so key rotations take effect within a minute.
<script src="https://complyage.org/gate/v1/script.js?k=YOUR_PUBLIC_KEY"></script> -
Set your region rules
Review the default allow / verify / deny rule for each enforcement zone in the members portal and adjust them for your site. Changes apply on the next decision — no redeploy.
Frequently asked questions
- Does the Age Gate hide my content from Google?
- No. The shield is a CSS overlay; the page's HTML is unchanged, so crawlers index your content normally. See the developer note on the gate and SEO.
- What happens to visitors outside enforced regions?
- Nothing visible — the shield is removed as soon as the decision comes back unenforced, typically within a few hundred milliseconds of page load.
- Can I use it without KYC?
- Yes. Set every region to allow or deny and the gate never opens a verification window; it behaves as a pure geo-gate.
- Does it work on single-page apps?
- Yes. The script runs once per page load and the pass cookie is first-party to your domain, so client-side navigation is unaffected.
- What does the visitor see in a verify region?
- A centred verification window over the shielded page, offering only the methods that region accepts — for example government ID or payment card in Texas, plus facial age estimation in most other zones.