Skip to main content

Age gate

An Age Gate is a mechanism used to collect and verify a user's age before allowing access to age-restricted content, features, or services. Age gates are required by regulations in many jurisdictions to ensure compliance with laws governing digital content access for minors.

What's an age gate?

Age gates serve several important purposes:

  • Regulatory Compliance: Meet legal requirements for verification in different jurisdictions
  • Content Protection: Prevent minors from accessing inappropriate content
  • Data Privacy: Ensure proper handling of children's data according to regulations such as COPPA, GDPR-K, and others
  • Parental Control: Enable parents to make informed decisions about their children's digital access

age gate

When's an age gate required?

To determine whether an age gate is required, call the /age-gate/get-requirements API with the player's jurisdiction. The API returns:

  • shouldDisplay: Whether an age gate should be displayed based on local regulations
  • approvedAgeCollectionMethods: Which methods are allowed for collecting age in this jurisdiction
  • digitalConsentAge: The minimum age at which a player can provide digital consent
  • civilAge: The civil/contract age at which a player is considered a legal adult
  • minimumAge: The minimum age required to access the platform/game
  • ageAssuranceRequired: Whether age verification is required for players in this jurisdiction
info

If /age-gate/get-requirements responds with shouldDisplay = false, then no age gate should be shown and the player's date of birth isn't defined. In this case, the game still creates a Session by retrieving default permissions for the jurisdiction by calling /age-gate/get-default-permissions, which means that permissions don't vary based on age in this jurisdiction. Some features in a game might be prohibited for all age audiences based on jurisdiction, so the game should still consult the Session permissions to check whether a feature can be enabled.

Showing an age gate

If an age gate is required (shouldDisplay = true), the age gate UI should be shown, and the user must enter a date of birth to continue.

Certain jurisdictions are specific on whether an age gate can contain a slider, or must request an explicit date of birth. The allowed methods for collecting age are specified in the approvedAgeCollectionMethods field:

  • date-of-birth: Full date of birth (YYYY-MM-DD)
  • age-slider: Age range or approximate age selection
  • platform-account: Using existing platform account age verification
Best Practice

When showing an age gate, a best practice is to show a "neutral age gate," one which doesn't have an age already set so the user has to take action to set an age. Additionally, if the age gate uses a slider for the age value, it's recommended by the ESRB that the maximum age in a slider age gate should be 35.

Date of birth format

The date of birth can be provided in any of the following formats:

  • YYYY (year only)
  • YYYY-MM (year and month)
  • YYYY-MM-DD (full date of birth)

The jurisdiction determines which format is required or acceptable. Some jurisdictions require full date of birth, while others allow less precise age information.

Checking age for access

After the player provides their age, call /age-gate/check with the date of birth and jurisdiction to determine the next step in the workflow:

  • PROHIBITED: The player's age is below the minimum age for the game. The player should be blocked from continuing.
  • CHALLENGE: The player's age requires Verifiable Parental Consent. A challenge is created and must be approved by a trusted adult.
  • PASS: The player can continue into the game. A session is created or returned.

Handling age assurance

info

If the player enters an age that would be considered an adult or teen, some jurisdictions might require age assurance. In these jurisdictions, the ageAssuranceRequired field returned from the /age-gate/get-requirements API is true.

In this case, after the user enters a date of birth, the game should verify the given age if it's greater than the age of digital consent for the location. Age estimation can be done by using facial scanning or document verification. If age estimation fails, or the age the player gave falls under the lowest value in the estimated age range, then they should be considered the minimum age of the range. The player either requires trusted adult consent, or is blocked altogether depending on the minimum age configured for the game in the Compliance Studio.