Age Gate - Checkbox Variant

EasyCookie-basedForm Submission

Simple age verification using a checkbox confirmation. This pattern tests a scraper's ability to detect form elements, manipulate checkbox state, and handle cookie-based session persistence.

What This Pattern Tests
Core scraping challenges you'll encounter with this variant
  • Detecting and interacting with checkbox form elements
  • Submitting forms with client-side validation
  • Managing cookie-based authentication state
  • Testing session persistence vs. permanent storage
How It Works

This is the simplest form of age verification. Users check a box confirming they are 18 or older, and optionally choose to remember this choice. The verification state is stored in a cookie.

Scraper Strategy:

  1. 1.Detect the age gate form on page load
  2. 2.Locate the checkbox element (id='age-confirm')
  3. 3.Set the checkbox to checked state
  4. 4.Optionally check 'Remember me' for cookie persistence
  5. 5.Submit the form by clicking the 'Enter Site' button
  6. 6.Verify the age_verified cookie is set correctly

Quick Bypass

For testing purposes, you can bypass this gate by setting the cookie directly:

document.cookie = "age_verified=true; max-age=2592000; path=/";
Interactive Demo
Try the Pattern
Test the age gate by interacting with the form below
Age Verification Required
This content is restricted to users 18 years and older

By checking this box, you confirm that you meet the minimum age requirement

Technical Reference
Technical Reference
Documentation for developers and bot testing

HTML Structure

Form Structure
<form id="age-gate-form">
  <div class="checkbox-wrapper">
    <input type="checkbox" id="age-confirm" name="age-confirm" />
    <label for="age-confirm">
      I am 18 years of age or older
    </label>
  </div>
  
  <div class="checkbox-wrapper">
    <input type="checkbox" id="remember-me" name="remember-me" />
    <label for="remember-me">
      Remember my choice for 30 days
    </label>
  </div>
  
  <button type="submit">Enter Site</button>
</form>

Cookie Details

Cookie Name:
age_verified
Value:
"true"
Expiry:
30 days
Path:
/