AgeGate.js
Tiny, dependency-free age verification gate
AgeGate.js is a free, dependency-free JavaScript age-verification overlay for adult sites. It is ~2 KB, remembers consent, supports per-country rules and is fully styleable.
Every adult site needs an age gate. Most are bloated or ugly. AgeGate.js is neither.
What it does
Shows a configurable 18+ overlay before content, stores consent (cookie or localStorage) and can apply per-country rules.
Styling
Ships unstyled by default — bring your own CSS, or use the included theme.
Privacy
No tracking, no external calls. Consent stays on the device.
Conversation
```html
<script src="agegate.min.js"></script>
<script>AgeGate.init({ minAge: 18 });</script>
```