Headless Login Guard
Forces login for backend access in headless WordPress setups while allowing GraphQL/REST API endpoints and essential paths.
Mit Vorsicht verwenden
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.
- Kleine Benutzerbasis (<10 aktive Installationen)
- Bisher sehr wenige Bewertungen
- Benötigt PHP 8.1 oder neuer
Wie stapelt es sich?
Side-by-side bei Installationen, Updates, Bewertungen und SupportTägliche Downloads
Download-Spitzen folgen normalerweise einer neuen Version - jede Website, die automatisch aktualisiert wird, gilt als Download.
Ranglisten
Where Headless Login Guard stands todayWordPress.org Ranglisten suchen
Live-Position in der Plugin-Suche, Top 100| Stichwort | Position |
|---|---|
| GraphQL | #30 |
| headless | #35 |
| login | >100 |
| rest-api | >100 |
| Sicherheit | >100 |
Bewertungsaufschlüsselung
★★★★★★★★★★ 5 from 1 reviews
About Headless Login Guard
Aus der offiziellen Readme · V1.1.0Beschreibung
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.
Was es tut
- 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/)
Anwendungsfall
- 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
- Laden Sie die Plugin-Dateien in das
/wp-content/plugins/headless-login-guard-Verzeichnis hoch oder installieren Sie das Plugin über den WordPress-Plugin-Bildschirm direkt. - Aktivieren Sie das Plugin über den Bildschirm „Plugins“ in WordPress.
- The plugin will automatically start protecting your backend – no configuration needed!
Änderungsprotokoll
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
- Erste Freigabe
- 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)
Für Entwickler
Ist das dein Plugin? Zeigen Sie die Zahlen.
Fügen Sie Ihrer Website, Docs oder GitHub Readme ein Live-Badge hinzu. Es wird von selbst aktualisiert - kein Konto erforderlich.
Best Headless Login Guard alternatives
All GraphQL plugins →Fragen und Antworten
Headless Login Guard: quick answers
Gerade Antworten, gezogen von Live WordPress.org Daten.
Quelle: 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).
Angetrieben von PageForge
Eine Vorlage und eine Tabelle. Eine echte Seite für jede Suche.
PageForge Verwandelt jede Zeile eines CSV in eine WordPress-Seite mit eigenem Titel, URL, SEO Felder und Schema entworfen. Kostenlos auf WordPress.org.
- CSV und XLSX, plus Google Sheets auf Beruf und Unternehmen
- seinen eigenen Titel, URL, SEO Felder und Schema für jede Seite
- Arbeitet mit dem Blockeditor, Elementor, Divi und Avada
- Kostenlos auf WordPress.org, keine Kreditkarte
