Laravel PHP Licenser & Updates Manager - REST API, webhooks, customer portal
- 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:
-
Disable theme frontend only
Enables or disables the frontend blocking behavior. -
Redirect URL
Optional URL to redirect blocked frontend requests, for example:/adminhttps://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
Leave a comment
Your email address will not be published. Required fields are marked *