An age gate asks a visitor to confirm they meet the age requirement before entering a site or a product page. This template shows a question, a confirm button and an exit link. It is a self-declaration, not an identity check, and the page is deliberately named “age verification” because that is what people search for — but the honest description is age confirmation.
The difference matters. A declaration can be clicked through by anyone, cleared with browser storage and bypassed by blocking the script. If your category requires a real control, the restriction has to exist somewhere else: at account creation, at checkout or in a licensed verification service.
No compliance claim. PopupLoom does not certify that this gate satisfies the rules for alcohol, vaping, gambling, adult content or any other regulated category. Those rules differ by country and sometimes by state. Have a professional review the flow before launch.
What this template is for
- An honest interstitial. A question, a confirm button, a decline link and a short explanation.
- One decision. No email field, no date of birth, no marketing consent bundled into the gate.
- A way out. The decline path should lead somewhere useful, not trap the visitor in a loop.
- Plain language. “You must be 21 or older to enter” is clearer than a legal paragraph.
Use it when
- The site or a section sells a restricted product and you want a visible confirmation step.
- You understand that the gate is one layer, not the whole control.
- You have a policy page that explains the restriction and a support route for questions.
- The decline path is acceptable for your business, including the traffic you will lose.
Recommended configuration
| Setting | Recommended value | Why |
|---|---|---|
| Trigger | Page load | The gate has to appear before the restricted content is used. |
| URL rule | Restricted sections only, for example /shop/* | A gate on the blog or contact page adds friction without purpose. |
| Device | Both | The question must be readable on a phone without zooming. |
| Frequency | Once per session | Re-asking on every page is hostile; permanent storage can be cleared anyway. |
| Fields | None | Buttons record a choice; a date of birth is more data than the gate needs. |
| Decline path | Link to a policy page or an external site | Gives the visitor a real exit rather than a dead end. |
Copy you can adapt
Headline: You must be 21 or older to enter
Subheadline: This section contains [CATEGORY] products. Confirm your age to continue.
Confirm button: I am 21 or older
Decline link: I am under 21
Small print: By continuing you confirm the statement above. See our terms.
Do not use “verified” in the copy. The visitor is confirming a statement, not proving it.
Set it up
- Open the Age Confirmation template in the studio.
- Set the age and the category in the copy. Match the number to the rule you actually apply.
- Set the trigger to page load and add the restricted URL paths.
- Set the frequency to once per session.
- Point the decline link at a policy page or an external destination.
- Publish, install the snippet and test both buttons on a phone and a desktop.
- Clear site data and reload to confirm the gate reappears when storage is empty.
What to measure
- Declines, as a signal that the gate is reaching the wrong audience or the wording is unclear.
- Support questions about the requirement, which usually point at copy that needs a policy link.
- Bypass reports, if the restriction matters enough that a client-side gate is not sufficient.
Do not treat a high confirmation rate as success. On a self-declaration, the number mostly measures how easy the button is to press.
Common mistakes
- Calling the gate “verification” in the copy or the page title without a document check.
- Trapping the visitor: the decline button reloads the same gate or goes nowhere.
- Collecting a date of birth and a marketing opt-in that the gate does not need.
- Assuming the gate covers checkout, when the restriction is enforced nowhere else.
- Forgetting that private windows and cleared storage reset the choice.
Related pages
- All age gate templates
- Announcement bar template
- Popup builder for ecommerce
- Install a popup on your site
- PopupLoom terms
Common questions
Is an age gate legally required?
It depends on the product, the country and sometimes the state or province. This page does not give legal advice. Ask a professional who knows the rules for your category before relying on a popup as your control.
Does this template verify age?
No. It records a self-declaration. Anyone can click the confirmation button, and clearing cookies or using a private window resets the choice. Call it age confirmation, not age verification, unless a document check happens somewhere.
Does PopupLoom store a date of birth?
Only if you add a date field and ask for it. The template uses buttons, not a date input, so the response is a choice. Collecting less information is usually the safer default.
Can someone bypass the gate?
Yes. A popup is a client-side control. A visitor can clear storage, use a private window, block the script or edit the page. If the product requires a stronger control, the restriction has to be enforced server-side or at checkout.
Written by Shailu016, founder of PopupLoom. Template behaviour checked on 16 November 2026. This page is not legal advice and makes no compliance, conversion or ranking claim.