Age Verification Script 2024






 <!DOCTYPE html>

<html lang="en">

<head>

  <meta charset="UTF-8">

  <meta name="viewport" content="width=device-width, initial-scale=1.0">

  <title>Age Verification</title>

  <style>

    body {

      font-family: Arial, sans-serif;

      text-align: center;

      background-color: #f2f2f2;

      padding: 50px;

    }

    #ageVerification {

      max-width: 600px;

      margin: 0 auto;

      padding: 20px;

      background-color: #ffffff;

      box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);

    }

    button {

      padding: 10px 20px;

      font-size: 16px;

      margin: 10px;

      cursor: pointer;

    }

  </style>

</head>

<body>


<div id="ageVerification"><center>

  <h2>Age Verification</h2>

  <p>Are you 18 years old or older?</p>

  

  <button onclick="redirectToContent()">Yes</button>

  <button onclick="redirectToExit()">No</button></center>

</div>


<script>

  function redirectToContent() {

    window.location.href = "https://example.com/content"; // Replace with the actual URL for users over 18

  }


  function redirectToExit() {

    window.location.href = "https://example.com/exit"; // Replace with the actual URL for users under 18

  }

</script>


</body>

</html>


Post a Comment

Previous Post Next Post