Not on WordPress? No way to access an API? No problem. Add compliant age verification to any website with a single line of code. If your platform lets you paste a script tag, it works.
Our JavaScript embed works on any website that allows custom HTML or script tags. No server-side code required—just paste and go.
If you can add a <script> tag to your pages, you can add age verification.
The entire integration is a single script tag. Add it to your site's HTML and age verification is live. No build tools, no dependencies, no backend changes.
<script src="https://age-verify.xyzinc.com/embed.js"
data-site-key="pk_live_your_key_here"></script>
data-cookie-days="365"
data-mode="auto"
Four steps from signup to live age verification on your site.
Contact us and we'll set you up with a Pro account and access to the admin dashboard. You'll get your publishable site key during onboarding.
In the admin dashboard, define which regions require verification and what tier (face check, ID verification, or block). Visitors from unregulated regions pass through without interruption.
Paste the embed snippet into your site's HTML. On most platforms this is done through a "Custom Code" or "Header/Footer Scripts" setting. No coding experience needed.
<script src="https://age-verify.xyzinc.com/embed.js"
data-site-key="pk_live_..."></script>
Visitors from age-gated regions see a verification overlay. After verifying, a cookie is set and they browse freely. Returning visitors are recognized instantly.
The embed creates a clean, full-page overlay that blocks content until verification is complete.
Page content is hidden behind a clean white overlay with a "Verify My Age" button.
On desktop, a popup window opens. On mobile, the user is redirected to complete verification.
After completing the check, the overlay disappears and a cookie is set for future visits.
The cookie is checked on load. Verified visitors see your site immediately—no overlay, no delay.
The right choice depends on your platform. Both use the same verification engine and privacy protections.
Best for sites where you can't run server-side code.
Deeper integration for WordPress sites with server-side enforcement.
The JS embed is a powerful tool, but it operates within the constraints of client-side code. Here's what you should know.
The overlay runs in the browser. A technically savvy user could disable JavaScript to bypass it. This provides a strong compliance posture—demonstrating that you have age verification in place—but it is not an absolute block. For server-side enforcement, consider the WordPress plugin or a custom API integration.
When the embed calls our API, the request passes through our Cloudflare-protected infrastructure, which provides accurate geo headers. Your site itself does not need Cloudflare. Visitors using VPNs may appear to be in a different region.
The embed identifies common search engine crawlers by User-Agent and lets them through automatically so your SEO is not affected. This covers all major search engines.
The JS embed is designed to work with minimal requirements. No server-side setup, no DNS changes, no Cloudflare.
<script> tags.
Settings → Custom Code → Add Code → Body (end)
Settings → Advanced → Code Injection → Footer
Project Settings → Custom Code → Footer Code
Online Store → Themes → Edit Code → theme.liquid (before </body>)
Add the script tag before </body> on every page that needs age gating
The JS embed is available as part of a Pro account. Contact us to get started—we'll walk you through the setup and have you live in minutes.
On WordPress? Get the free plugin instead—100 credits/month, no credit card required.