New License Manager

Laravel PHP Licenser & Updates Manager - REST API, webhooks, customer portal

Backend Only

Plugin
Disable frontend website and keep backend/admin only.
$2.50 $5.00

Version

1.0.0

Botble Version

License

MIT

  • Name: Backend Only
  • Version: 1.0.0
  • Author: Kheang-dev
  • Website: https://kheang.app
  • Description: Disable frontend website and keep backend/admin only.

This plugin registers a global middleware to inspect incoming requests.

When Disable theme frontend only is turned on:

  • Requests to the admin panel are allowed.
  • Requests to API and asset folders are allowed.
  • Some public paths are still allowed, such as:
    • /careers
    • /careers/login
    • /careers/register
    • /account
    • /account/login
    • /account/register
    • /login
    • /register
  • Some route-name prefixes are also allowed, such as:
    • public.account.
    • account.
    • careers.
    • career.
    • jobs.
    • payment.
    • invoice.
    • consult.
    • real-estate.

All other frontend requests are treated as theme frontend traffic and will either:

  • redirect to the configured URL, or
  • return 404 if no redirect URL is set.

This plugin adds a settings page in the admin panel:

Admin path: Admin -> Settings -> Backend Only

Available options:

  1. Disable theme frontend only
    Enables or disables the frontend blocking behavior.

  2. Redirect URL
    Optional URL to redirect blocked frontend requests, for example:

    • /admin
    • https://example.com

If left empty, blocked frontend requests will show 404.

  • Disable theme frontend pages.
  • Keep admin/backend accessible.
  • Keep API and common asset paths accessible.
  • Allow selected public paths such as login, register, account, and careers pages.
  • Optionally redirect blocked frontend requests to another URL.
  • Return 404 if no redirect URL is configured.
❤️

Support the Author

If you find this product helpful, consider supporting the developer.

Bank Information

ABA Bank | Cambodia

Scan QR Code

ABA Bank | Cambodia

Leave a comment

Your email address will not be published. Required fields are marked *

Kindly log in to share your feedback on this plugin.