🔥 Black Friday Sale: Get 65% OFF Any PageForge Pro Plan! Use code BF65 Claim Offer →
Account Get it free
Headless Login Guard icon
Maintained Tested up to 7.0.9 #17 in GraphQL

Headless Login Guard

Forces login for backend access in headless WordPress setups while allowing GraphQL/REST API endpoints and essential paths.

Active installs<10New
Downloads · 30d82▲ +26.2% vs prev. 30d
Rating5/51 reviews
Health score56/100Fair
All-time downloads441Since May 2026
Support resolved—No recent threads
RequiresWP 6.0PHP 8.1+
Downloads · 7d11▼ -42.1% week over week
Our verdict

Use with caution

Headless Login Guard works, but test it on a staging site before relying on it in 2026. Is rated 5/5 and was last updated 4 months ago, and scores 56/100 on our health check.

  • Small user base (<10 active installs)
  • Very few reviews so far
  • Needs PHP 8.1 or newer

How does it stack up?

Side-by-side on installs, updates, ratings & support

Daily downloads

246Sep 4Oct 18Dec 2
Yesterday4
Daily average (1y)2
Peak day28Aug 4, 2026
Last 12 months449

Download spikes usually follow a new release — each site that auto-updates counts as a download.

Rankings

Where Headless Login Guard stands today

WordPress.org search rankings

Live position in the plugin search, top 100
KeywordPositionCompeting pluginsCategory
GraphQL #30 135 Best GraphQL plugins →
headless #36 610 Best headless plugins →
login >100 10,000 Best login plugins →
rest-api >100 10,000 Best rest-api plugins →
security >100 10,000 Best security plugins →

Rating breakdown

★★★★★★★★★★ 5 from 1 reviews

  • 5★100.0%
  • 4★0.00%
  • 3★0.00%
  • 2★0.00%
  • 1★0.00%

About Headless Login Guard

From the official readme · v1.1.0

Description

A lightweight plugin that forces login for backend access in a headless WordPress setup. Keeps your WordPress dashboard private while allowing your front end (e.g. Astro, Next.js) to pull content via GraphQL/REST.

What it does

  • Requires authentication for /wp-admin/ and other backend pages
  • Always allows the login page to avoid redirect loops
  • Leaves key endpoints open for headless use:
    • /wp-json/ (REST API)
    • /graphql (WPGraphQL)
    • /wp-admin/admin-ajax.php (AJAX)
    • /wp-cron.php (cron)
    • /robots.txt
    • WordPress core and common SEO sitemap XML paths
    • /wp-content/uploads/* (media)
    • /favicon.ico
    • /newrelic (New Relic monitoring)
  • Logged-in users visiting the backend root get redirected to the dashboard
  • Works with Bedrock layouts (handles root path vs /wp/)

Use case

  • WordPress is the content backend
  • Public site is built with Astro/Next.js/etc
  • Editors log in to WordPress. Visitors never see the backend
  • Front end builds and live pages can still query GraphQL/REST without authentication

Customization

Developers can customize allowed endpoints using the force_login_allowed_patterns filter:

add_filter('force_login_allowed_patterns', function($patterns) {
    $patterns[] = '#^/healthz$#';           // custom health check
    $patterns[] = '#^/status$#';            // uptime checks
    $patterns[] = '#^/wp-json/acf/v3/.*#';  // specific REST namespace
    return $patterns;
});

Installation

  1. Upload the plugin files to the /wp-content/plugins/headless-login-guard directory, or install the plugin through the WordPress plugins screen directly.
  2. Activate the plugin through the ‘Plugins’ screen in WordPress.
  3. The plugin will automatically start protecting your backend – no configuration needed!

Changelog

Fixes sitemap access and request handling for subdirectory and Bedrock installations.

1.1.0

  • Fixed: Allow WordPress core, Yoast-style, and nested sitemap XML paths
  • Fixed: Match allowlisted endpoints correctly on subdirectory, Bedrock, and multisite installations
  • Fixed: Preserve query strings without duplicating the site path in login redirect destinations
  • Improved: Parse request paths separately from query strings
  • Improved: Send no-cache headers before login redirects
  • Improved: Added redirect, sitemap, query-string, and subdirectory integration tests

1.0.1

  • Added: New Relic monitoring endpoint allowlist pattern (/newrelic) to support APM monitoring
  • Added: WordPress.org plugin directory compatibility
  • Added: Proper plugin structure with activation/deactivation hooks
  • Added: Filter hook for customizing allowed patterns
  • Improved: Code organization and documentation

1.0.0

  • Initial release
  • Restricts backend (/wp-admin/) to authenticated users
  • Allows GraphQL and REST API endpoints for headless front-ends
  • Basic whitelist of essential endpoints (cron, ajax, robots.txt, sitemaps, uploads)

Full changelog on WordPress.org →

For developers

Is this your plugin? Show off the numbers.

Add a live badge to your site, docs or GitHub README. It updates on its own — no account needed.

Active installs badge Rating badge Health score badge

Best Headless Login Guard alternatives

All GraphQL plugins →
Alternatives
Rank Plugin Active installs Rating Updated Health
1 WPGraphQL WPGraphQL WPGraphQL adds a flexible and powerful GraphQL API to WordPress, enabling efficient… by Jason Bahl 30K+ ★★★★★★★★★★ 4.9 (48) 2 weeks ago 86
2 WPGraphQL for ACF WPGraphQL for ACF WPGraphQL for ACF seamlessly integrates Advanced Custom Fields with WPGraphQL. by Jason Bahl 10K+ ★★★★★★★★★★ 5 (1) 1 week ago 75
3 WPGraphQL Yoast SEO Addon WPGraphQL Yoast SEO Addon This plugin enables Yoast SEO Support for WPGraphQL. by ash_hitch 10K+ ★★★★★★★★★★ 5 (3) 1 month ago 71
4 WPGraphQL IDE WPGraphQL IDE Modern GraphQL IDE for WPGraphQL — schema-aware editor, execution history, saved queries… by Joe Fusco 1K+ ★★★★★★★★★★ No reviews 2 weeks ago 65
5 Add WPGraphql Send Mail Add WPGraphql Send Mail This plugin enables to send email via WPGraphQL. by ash_hitch 400+ ★★★★★★★★★★ No reviews 7 months ago 42
6 Add WPGraphQL Redirection Add WPGraphQL Redirection Add WPGraphQl support for redirects made using the popular Redirection Plugin by ash_hitch 400+ ★★★★★★★★★★ No reviews 7 months ago 42
7 WPGraphQL Blocks WPGraphQL Blocks Get gutenberg blocks as JSON through wp-graphql by Tom Phillips 300+ ★★★★★★★★★★ No reviews 2 years ago 29
8 Nullify empty fields for ACF Nullify empty fields for ACF Set Advanced Custom Fields (ACF) empty field value as null instead of false to avoid… by Jabran Rafique 70+ ★★★★★★★★★★ 5 (1) 3 years ago 32
9 Redirection GraphQL Extension Redirection GraphQL Extension Expose redirects set up in Redirection plugin to GraphQL API. by Urban Insight 60+ ★★★★★★★★★★ No reviews 4 years ago 25
10 Stellate Stellate Stellate plugin for WordPress by Stellate 50+ ★★★★★★★★★★ 5 (1) 3 months ago 65

FAQ

Headless Login Guard: quick answers

Straight answers, pulled from live WordPress.org data.

Source: WordPress.org

Is Headless Login Guard free?

Yes. Headless Login Guard is free to download and use from the official WordPress.org plugin directory.

Is Headless Login Guard safe to use in 2026?

Headless Login Guard works, but test it on a staging site before relying on it in 2026. Is rated 5/5 and was last updated 4 months ago, and scores 56/100 on our health check.

How many websites use Headless Login Guard?

Headless Login Guard is active on <10 WordPress websites and has been downloaded 441 times since it launched in May 2026. It was downloaded 82 times in the last 30 days.

Does Headless Login Guard work with WordPress 7.1?

Headless Login Guard is officially tested up to WordPress 7.0.9, while the latest release is 7.1.5. It may still work, but try it on a staging site first.

What PHP version does Headless Login Guard need?

Headless Login Guard requires PHP 8.1 or higher. Most hosts run PHP 8.x today, so it works on any modern WordPress hosting.

When was Headless Login Guard last updated?

The latest version, 1.1.0, was released on August 4, 2026 (4 months ago).

Who makes Headless Login Guard?

Headless Login Guard is developed and maintained by Andrew Wilkinson.

What are the best alternatives to Headless Login Guard?

The most popular alternatives to Headless Login Guard are WPGraphQL (30K+ installs), WPGraphQL for ACF (10K+ installs) and WPGraphQL Yoast SEO Addon (10K+ installs).

Powered by PageForge

One template and a spreadsheet. A real page for every search.

PageForge turns each row of a CSV into a WordPress page with its own title, URL, SEO fields and schema, built on the layout you already designed. Free on WordPress.org.

  • CSV and XLSX, plus Google Sheets on Professional and Enterprise
  • Its own title, URL, SEO fields and schema for every page
  • Works with the block editor, Elementor, Divi and Avada
  • Free on WordPress.org, no credit card

↑↓ to move↵ to open