sandywp / plugins / age-gate

Age Gate

4.6 out of 5 stars. 4.6 64 reviews

A plugin to check the age of a visitor before view site or specified content

Launch a sandbox with this plugin → No signup.
Ready in seconds.

v3.7.2 40,000+ installs WP 6.0.0+ PHP 7.4+

your-sandbox.sandywp.com/wp-admin
Age Gate running inside a SandyWP sandbox

What you get inside

8 screens
  • An example of Age Gate

  • The Restrictions settings page

  • Age Gate has a variety of customisable message settings

  • The appearance can be tailored to fit your website

  • Advanced options include the use of a JavaScript Age Gate

  • Manage what users can change Age Gate's setting, restrict posts and exclude settings from certain post types.

About this plugin

There are many uses for restricting content based on age, be it movie trailers, beer or other adult themes. This plugin allows you to set a restriction on what content can been seen or restricted based on the age of the user.

Features

  • Ask users to verify their age on page load
  • SEO Friendly – common bots and crawlers are omitted from age checks
  • Ability to add custom user agents for less common bots
  • Shortcode for in content restrictions
  • Choose to restrict an entire site, or selected content
  • Select a different age on individual content
  • Allow certain content to not be age gated under “all content” mode
  • Three choices for input; dropdowns, input fields or a simple yes/no button
  • Customise the order of the inputs based on your region (DD MM YYYY or MM DD YYYY)
  • Allow a “remember me” check box if desired
  • Ability to omit logged in users from being checked
  • Add your own logo
  • Update the text displayed on the entry form
  • Select background colour/image, foreground colour and text colour
  • Use built in styling out of the box, or your own custom style
  • Ability to add legal note or information to the bottom of the form
  • Redirect failed logins to a URL of your choice e.g. an alcohol awareness website.
  • Ability to use a non caching version
  • Various hooks to add even more customisation such as additional form fields
  • Compatible with multilingual plugins WPML, Polylang (2.3+), WP Multilang

Questions

I can’t get past the Age Gate / The Age Gate only worked once

The most likely cause for this is caching on your site either via a plugin or your hosting provider. If the Age Gate appears stuck try using the JavaScript mode in the advanced tab and clear any caches.

Can I restrict a particular page?

You can. If you use selected content, a checkbox will appear in content pages

Can I add my own logo/branding?

Of course, it’s your site

I’m in X country, can I format the date style?

Yes! DD MM YYYY and MM DD YYYY are supported along with a choice of how the dates are entered.

I use caching, will that be affected?

From version 1.4.0 those using caching can select the “Cache Bypass” option to allow age gating even with caching on. Be sure to empty your cache when making changes to the plugin settings. From 2.0.0 this option is in Advanced -> Use uncachable version

4.6

64 reviews

  • 5 ★ 56
  • 4 ★ 1
  • 3 ★ 1
  • 2 ★ 0
  • 1 ★ 6

Ratings come from WordPress.org. SandyWP does not collect its own reviews.

sandywp / also on the shelf

Try another plugin

  • Age Gate Lite

    5.0 · 2K+ installs

    A lightweight, customisable age gate to lock content from younger audience.

  • Age Gator

    5.0 · 400+ installs

    Age Gator is a Wordpress plugin specifically designed to guard sensitive content (alcohol, gambling, x-rated, etc) from underage…

  • Do you have to filter out younger people? With this super simple age gate you'll fix those age restrictions quickly. Ment for…

Spin up a real WordPress site in seconds.

Test plugins, build a demo, hand a client a link — then squash it and start again. No local setup, no Docker.