basilicom-pimcore-plugin / subdomain-admin
A Pimcore plugin that disables access to the admin backend through the main domain and enables it on another domain
Installs: 141
Dependents: 0
Suggesters: 0
Security: 0
Stars: 4
Watchers: 15
Forks: 1
Open Issues: 0
Type:pimcore-plugin
Requires
- php: >=5.4.0
- pimcore/installer-plugin: >=1
This package is auto-updated.
Last update: 2024-12-09 21:45:29 UTC
README
Developer info: Pimcore at basilicom
Synopsis
This Pimcore http://www.pimcore.org plugin disables admin access on main domain and enables it on another subdomain/domain set in Website Settings.
Code Example / Method of Operation
After installing the plugin there is a new website setting available (under Settings > Website) with name subdomainAdmin. Set it to the domain that you want admin accessible from (e.g. admin.yourdomain.com).
Motivation
Even though Pimcore comes with great security it still makes sense to prevent access to admin through the main domain, especially to any bots, script kiddies, ...
Installation
Add "basilicom-pimcore/subdomain-admin" as a requirement to the composer.json in the toplevel directory of your Pimcore installation. Then enable and install the plugin in Pimcore Extension Manager (under Extras > Extensions)
Example:
{
"require": {
"basilicom-pimcore-plugin/subdomain-admin": ">=1.0.0"
}
}
Troubleshooting
In case you lose access to the admin area due to misconfiguration you have two options:
- disable plugin by editing /website/var/config/extensions.xml (change the value to 0 or delete the whole line)
- remove Website Setting by deleting the corresponding row (subdomainAdmin) in website_settings table in the database
Contributors
- Igor Benko igor.benko@basilicom.de
License
- BSD-3-Clause