કંટેન્ટ(લખાણ) પર જાઓ
WordPress.org

ગુજરાતી

  • થીમ્સ
  • પ્લગિન્સ
  • સમાચાર
  • સપોર્ટ
  • વિશે
  • ગુજરાતી ટીમ
  • કાર્યક્રમ
  • મીટઅપ્સ
  • વર્ડપ્રેસ મેળવો
વર્ડપ્રેસ મેળવો
WordPress.org

Plugin Directory

Headless Login Guard

  • પ્લગઇન સબમિટ કરો
  • મારું મનપસંદ
  • લોગ ઇન
  • પ્લગઇન સબમિટ કરો
  • મારું મનપસંદ
  • લોગ ઇન

Headless Login Guard

Andrew Wilkinson દ્વારા
ડાઉનલોડ
  • વિગતો
  • સમીક્ષાઓ
  • સ્થાપન
  • ડેવલપમેન્ટ
સપોર્ટ

વર્ણન

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
    • /sitemap*.xml (sitemaps and indexes)
    • /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;
});

સ્થાપન

  1. Upload the plugin files to the /wp-content/plugins/force-login 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!

એફએક્યુ (FAQ)

I’m locked out! How do I access my site?

Visit /wp-login.php directly to sign in. The plugin always allows access to the login page.

My front-end requests are failing. What should I do?

Verify the endpoint is on the allow list. Check the plugin description for the default allowed patterns, or use the force_login_allowed_patterns filter to add custom endpoints.

Does this work with Bedrock?

Yes! The plugin correctly handles both standard WordPress installs and Bedrock layouts where the site URL and home URL may differ.

Can I add custom endpoints?

Yes, use the force_login_allowed_patterns filter to add your own regex patterns for additional endpoints that should remain public.

સમીક્ષાઓ

આ પ્લગઇન માટે કોઈ સમીક્ષાઓ નથી.

ફાળો આપનાર & ડેવલપર્સ

આ ઓપન સોર્સ સોફ્ટવેર છે. નીચેના લોકો એ આ પ્લગિન માટે ફાળો આપ્યો છે.

ફાળો આપનારા
  • Andrew Wilkinson

“Headless Login Guard” ને તમારી ભાષામાં અનુવાદ કરો.

વિકાસમાં રસ ધરાવો છો?

કોડ બ્રાઉઝ કરો, જોવોઅસ્વીએન રેપોઝિટરીમાંથી,અથવા સબ્સ્ક્રાઇબ કરોડેવલપમેન્ટ દ્વારાઆરઅસઅસ.

ચેન્જલૉગ

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)

મેટા

  • વર્ઝન 1.0.1
  • છેલ્લી અપડેટ: 1 મહિનો પહેલા
  • સક્રિય સ્થાપનો: 10 કરતા ઓછા
  • વર્ડપ્રેસ વર્ઝન 6.0 અથવા ઉચ્ચતર
  • 6.9.4 સુધી પરીક્ષણ કર્યું
  • PHP સંસ્કરણ 8.1 અથવા ઉચ્ચતર
  • ભાષા
    English (US)
  • ટૅગ્સ:
    GraphQLheadlessloginrest-apisecurity
  • વિગતવાર દૃશ્ય

પૉઇન્ટ્સ

હજુ સુધી કોઈ સમીક્ષા સબમિટ કરવામાં આવી નથી.

Your review

બધા સમીક્ષાઓ જુઓ

ફાળો આપનારા

  • Andrew Wilkinson

સપોર્ટ

કંઈક કહેવું છે? મદદ જોઈએ છે?

આધાર ફોરમ જુઓ

  • વિશે
  • સમાચાર
  • હોસ્ટિંગ.
  • ગોપનીયતા
  • શોકેસ.
  • થીમ્સ
  • પ્લગઇન્સ
  • દાખલાઓ
  • જાણો
  • આધાર
  • વિકાસકર્તાઓ
  • WordPress.tv
  • સામેલ કરો
  • કાર્યકર્મ
  • દાન કરો
  • ભવિષ્ય માટે પાંચ
  • WordPress.com
  • મેટ
  • બી બી પ્રેસ
  • બડીપ્રેસ.
WordPress.org
WordPress.org

ગુજરાતી

  • અમારા X (અગાઉ ટ્વિટર) એકાઉન્ટની મુલાકાત લો
  • અમારા Bluesky એકાઉન્ટની મુલાકાત લો
  • Visit our Mastodon account
  • અમારા Threads એકાઉન્ટની મુલાકાત લો
  • અમારા ફેસબુક પેજની મુલાકાત લો
  • અમારા ઇન્સ્ટાગ્રામ એકાઉન્ટની મુલાકાત લો
  • અમારા LinkedIn એકાઉન્ટની મુલાકાત લો
  • અમારા TikTok એકાઉન્ટની મુલાકાત લો
  • અમારી YouTube ચેનલની મુલાકાત લો
  • અમારા Tumblr એકાઉન્ટની મુલાકાત લો
કોડ કવિતા છે.
The WordPress® trademark is the intellectual property of the WordPress Foundation.