Linux 软件免费装
Banner图

XYZ Age Verification

开发者 xyzinc
xyzageverify
更新时间 2026年3月14日 05:37
PHP版本: 7.4 及以上
WordPress版本: 6.9
版权: GPLv2 or later
版权网址: 版权信息

标签

age verification age gate age check adult content liveness detection

下载

2.4.2

详情介绍:

XYZ Age Verification provides real age verification for WordPress sites that need to comply with age-gating regulations. Unlike simple "click to confirm" plugins, XYZ uses biometric liveness detection and optional government ID verification to confirm that a visitor is not a minor. How it works:
  1. Visitors from configured regions are redirected to an age gate page.
  2. They complete a face liveness check (Tier 1) or liveness + government ID verification (Tier 2).
  3. Upon verification, a secure cookie is set and the visitor is granted access.
  4. All biometric data is processed in real-time and is not stored.
Key features: Free plan included: This plugin includes a free plan with 100 verification credits per month — no credit card required. Register directly from the plugin settings page with just your email address. Credits reset monthly and do not roll over. Additional credit packs are available for sites that need more capacity. Requirements: External service — XYZ Age Verification API: This plugin connects to the XYZ Age Verification API at https://age-verify.xyzinc.com, operated by XY Zinc (a brand of Chaos Unlimited LLC), to perform biometric liveness detection and government ID document verification. The plugin cannot function without this service — it is the core verification engine. When a visitor triggers age verification, the plugin sends the visitor's country and state codes (derived from Cloudflare headers) to the API to create a verification session. The visitor then interacts directly with the verification UI hosted by the service. No biometric data passes through your WordPress server. The plugin polls the API for session status and receives only a pass/fail result.

安装:

  1. Upload the xyz-age-verification-free folder to /wp-content/plugins/.
  2. Activate the plugin through the "Plugins" menu in WordPress.
  3. Go to Settings > Age Verification.
  4. If you don't have an API key, enter your email under "Get Started with a Free Plan" and click Start Free Plan. Check your email to confirm and receive your API key.
  5. Enter your API key in the settings.
  6. Click Fetch from API next to the Cookie Signing Key field to enable secure cookie verification.
  7. Create a WordPress page with the slug age-gate and add the [xyzav_age_verify] shortcode to its content.
  8. Copy mu-plugin/xyz-age-gate-redirect.php from the plugin folder to /wp-content/mu-plugins/. Create the mu-plugins directory if it does not exist.
  9. Go to Settings > Free Plan to configure your regions, welcome content, and verification thresholds.
  10. If using a page cache plugin, exclude /age-gate/ from caching. Note: WP Rocket is not compatible (see FAQ).
  11. Check the Setup Checklist on the settings page to verify all steps are complete.

屏幕截图:

  • Age gate page with QR code and verification options
  • Free Plan Admin — region management with minimum age
  • Free Plan Admin — recent verifications with detailed attempt history
  • Plan status showing credit usage and remaining balance
  • Test mode in action — simulating a region with ?reg= parameter

升级注意事项:

2.4.1 Security and compliance improvements for WordPress.org review. Free Plan Admin now uses WP REST API. MU plugin redirect URLs are HMAC-verified. Recommended for all users. 2.3.0 New free plan with 100 monthly credits, built-in region management, configurable fail behavior, and detailed verification history. Recommended for all users. 2.2.0 Security improvements including signed cookies, test mode, and setup checklist. Recommended for all users. 2.1.0 Critical security fix — removes region parameter override vulnerability. Update immediately.

常见问题:

Is this plugin free?

Yes. The plugin itself is completely free and open source. It connects to the XYZ Age Verification API, which includes a free plan with 100 verification credits per month. One credit is consumed per face liveness attempt, and two credits per document verification attempt. Additional monthly credit packs are available for sites that need more capacity.

What are verification credits?

Credits represent verification attempts. Each face liveness check (Tier 1) costs 1 credit. Each document verification attempt (Tier 2) costs 2 credits. Your free plan includes 100 credits per month, which resets on the first of each month. Unused credits do not roll over.

What happens when my credits run out?

This depends on your API Failure Behavior setting. In "fail open" mode (the default), visitors are allowed through unverified. In "fail closed" mode, visitors are redirected to an error page until credits reset or you purchase additional credits. Verifications that are already in progress when the limit is reached are allowed to complete.

Why does this plugin require Cloudflare?

The plugin uses Cloudflare's CF-IPCountry and CF-Region-Code headers to determine visitor location for region-specific age verification rules. These headers are added automatically when your site is proxied through Cloudflare. A free Cloudflare plan provides these headers.

What happens if the API is unreachable?

The behavior is controlled by the API Failure Behavior setting on the Age Verification settings page. "Fail open" (the default) allows visitors through unverified to prevent your site from going offline. "Fail closed" redirects visitors to an error page. European site operators may need "fail closed" for regulatory compliance.

What is the must-use plugin for?

The MU plugin (xyz-age-gate-redirect.php) runs early in the WordPress loading process, before most plugins. It checks Cloudflare geo headers and the verification cookie on every request, redirecting unverified visitors to the age gate page. This early execution is essential for the age gate to work reliably.

Is this plugin compatible with WP Rocket?

No. WP Rocket's page cache serves static HTML files via its advanced-cache.php drop-in, which executes before must-use plugins load. This means WP Rocket can serve cached pages to unverified visitors, bypassing the age gate entirely. WP Rocket does not currently offer a way to conditionally cache based on cookie presence. Other page cache plugins that respect the standard WordPress loading order are compatible — just exclude /age-gate/ from caching.

Can visitors bypass the age gate with browser dev tools?

The verification cookie is cryptographically signed using HMAC-SHA256. Setting a fake cookie value will not pass signature verification.

What data is collected during verification?

Only the verification result (pass/fail), session metadata, a timestamp, and the visitor's IP address (for fraud detection) are retained. Biometric data (face images, liveness frames) is processed in real-time and discarded immediately. No government ID content is stored — date of birth is used transiently for age calculation and then discarded. Full details can be found in the Privacy Policy.

Will the age gate block me from my own WordPress admin?

No. The /wp-admin/ area and the login page are always exempted from the age gate. Additionally, all logged-in WordPress users are automatically bypassed at the redirect level, so administrators, editors, and other authenticated users will not encounter the age gate while browsing the site.

How does this work with membership or subscriber sites?

The age gate redirect runs at the must-use plugin level, which executes before WordPress loads user roles. At this stage the plugin can detect that a visitor is logged in, but cannot distinguish between an administrator and a regular member. As a result, all logged-in WordPress users bypass the age gate, not just administrators. For most sites this is not an issue — anonymous visitors are verified before they can register or log in, so members have already passed verification. However, if your site requires age verification for content that logged-in members can also access (e.g., tiered content where some sections require re-verification), this plugin is not a fit for that use case. Plan your registration flow with this behavior in mind.

What is the Cookie Signing Key?

The Cookie Signing Key is an HMAC-SHA256 secret used to cryptographically sign verification cookies. This prevents visitors from forging a verification cookie with browser dev tools. The key is generated per-site by the XYZ API. Click "Fetch from API" on the settings page to set it up automatically.

How do I know if the plugin is configured correctly?

The settings page includes a Setup Checklist that shows green checkmarks for completed steps and red Xs for missing items. There is also an API Status indicator that tests the connection to the XYZ verification API. Click the Help tab at the top-right of the settings page for a full setup guide and troubleshooting tips.

How do I test the age gate without being in an age-gated region?

Enable Test Mode in Settings > Age Verification. Once enabled, anyone can add a ?reg= query string parameter to any page URL to simulate a visitor from that region. For example, ?reg=US-TX simulates a visitor from Texas, USA, and ?reg=DE simulates a visitor from Germany. Test mode bypasses both the verification cookie and the logged-in user exemption so you experience the full age gate flow. This works in incognito/private browsing windows without a WordPress login, which is the most common way to test as an anonymous visitor. Remember to disable test mode when testing is complete — a persistent admin notice will remind you.

What is the minimum age setting?

Each region can have its own minimum age threshold (default is 18). For regions with a minimum age other than 18, the plugin automatically requires Tier 2 verification (government ID) because Tier 1 (face liveness) can only assess minor probability, not exact age. The ID document is needed to extract the date of birth for precise age calculation.

更新日志:

2.4.2 2.4.1 2.4.0 2.3.0 2.2.0 2.1.0 2.0.0