Open Age Verification Service

Free age verification for any website

Quick Start Guide

Method 1: Simple Direct Link

<a href="https://verify.nwmd.nl/index.php?age=21&redirect=https://yoursite.com/restricted">
  Verify Age (21+)
</a>

✓ Easiest to implement | ✗ Parameters visible in URL

Method 2: Encoded Parameters (Recommended)

<?php
$params = [
  'age' => 21,
  'redirect' => 'https://yoursite.com/restricted',
  'domain' => 'yoursite.com'
];
$encoded = base64_encode(json_encode($params));
$url = "https://verify.nwmd.nl/index.php?p=" . urlencode($encoded);
?>
<a href="<?php echo $url; ?>">Verify Age</a>

✓ Parameters hidden | ✓ More secure

Method 3: JavaScript Integration

function verifyAge(requiredAge = 18) {
  const params = {
    age: requiredAge,
    redirect: window.location.href,
    domain: window.location.hostname
  };
  const encoded = btoa(JSON.stringify(params));
  window.location.href =
    `https://verify.nwmd.nl/index.php?p=${encodeURIComponent(encoded)}`;
}

✓ Dynamic | ✓ Works with SPAs

Handling the Response

<?php
if (isset($_GET['verified']) && $_GET['verified'] == '1') {
  // User successfully verified their age
  session_start();
  $_SESSION['age_verified'] = true;
  header("Location: /restricted-content");
} elseif (isset($_GET['cancelled'])) {
  // User cancelled or is underage
  header("Location: /");
}
?>

Parameters

  • age - Required age (default: 18)
  • redirect - Return URL after verification
  • domain - Your domain (for cookies)

Response Parameters

  • verified=1 - Age verified
  • token - Verification token
  • cancelled=1 - User cancelled

Test the Service

Try these example links to see how it works:

This is a free service. No API keys required.

Questions? Email: [email protected]