- Allow
enabled
to be set using a callback function in config files.
- Update English translations.
- Fix multi-site protected/unprotected URLs not being honoured.
- Fix an error when trying to determine multi-site plugin settings for installs where no primary site exists yet.
- Now requires PHP
8.2.0+
. - Now requires Craft
5.0.0+
.
- Allow
enabled
to be set using a callback function in config files.
- Update English translations.
- Fix multi-site protected/unprotected URLs not being honoured.
- Action request endpoints are now no longer protected.
- Fix too-early call on
User::getIdentity()
when plugin is disabled, for better performance.
- Fix an error when checking the enabled state of the plugin.
- Add
Cache-Control
headers when redirecting.
- Fix an incorrect check for enabled state for multi-site installs.
- Fix
unprotectedUrls
as a config option not working correctly.
- Only admins are now allowed to access plugin settings.
- Fix Protected URLs/Unprotected URLs not working correctly for multiple values when set via the control panel.
- Add
enableCpProtection
plugin setting.
- Fix login challenge when accessing the control panel.
- Fix an error introduced in 2.0.4.
- Add support for Cloudflare remote IP checking.
- Add support to block CP-based pages, not just site-based requests.
- Fix an issue with live preview checks for access control.
- Fix
protectedUrls
, andunprotectedUrls
URLs partial-matching incorrectly due to Regex rules. - Better normalising of
allowIps
,denyIps
,protectedUrls
, andunprotectedUrls
settings. - Revert infinite loop check, which results in incorrect redirect URLs.
- Fix an error when installing the plugin.
- Add resave console command for elements.
- Add checks for registering events for performance.
- Add
archiveTableIfExists()
to install migration.
- Now requires PHP
8.0.2+
. - Now requires Craft
4.0.0+
. - Now requires Knock Knock
1.2.16
in order to update from Craft 3. - Rename service classes.
- Rename base plugin methods.
- Use
Application::EVENT_INIT
to test access to ensure Craft is initialized properly.
- Allow arrays in config settings for
allowIps
,denyIps
,protectedUrls
,unprotectedUrls
. (thanks @Diewy).
- Fix a potential infinite redirect loop if changing from
http
tohttps
.
- Fix site-based custom templates not working correctly.
- Add support for custom CP-based templates. (thanks @seibert-io).
- Add support for IPv4 and IPv6 CIDR blocks in allowIps and denyIps config. (thanks @onstuimig).
- Deny access to settings for non-admins.
- Fix redirect URL not using the referrer URL after logging in.
- Fix potential error redirecting to non-site URLs after login. In some cases, this caused redirecting to a cpresources asset.
- Fix cookie not respecting the Craft
defaultCookieDomain
config setting.
- Fix incorrect
loginUrl
route, causing issues on some site setups (subdirectory installs).
- Allow env variables to be used in allow/deny IPs.
- Fix login path not resolving correctly for some multi-site installs.
- Fix challenge URL not being correct for nested URLs.
- Add
useRemoteIp
to opt-in to more stricter IP checks if security is your concern.
- Revert behaviour of using remote IP for checking user IP. Too many issues and edge-cases.
- Fix potential issue splitting multi-line settings (allowIps, denyIps, protectedUrls).
- Fix error introduced in 1.2.9.
- Deprecate
whitelistIps
. UseallowIps
instead. - Deprecate
blacklistIps
. UsedenyIps
instead.
- Fix fetching the IP for a user that could allow spoofing via headers. Vulnerability
IP Whitelist bypass
reported by Paweł Hałdrzyński. - Ensure redirect param is validated to prevent malicious redirection. For custom forms, please update the redirect input to use
{{ redirect | hash }}
otherwise logins will not work. VulnerabilityOpen-redirect
reported by Paweł Hałdrzyński.
- Add
forcedRedirect
to force a redirected URL once logging in.
- Fix logging error
Call to undefined method setFileLogging()
.
- File logging now checks if the overall Craft app uses file logging.
- Log files now only include
GET
andPOST
additional variables.
- Realllly fix live preview from cross-domains.
- Fix error thrown for console requests.
- Re-organise access testing code, and support cross-domain live preview (properly, through tokens).
- Exclude live preview requests from blocking access.
- Fix asset bundles causing style issues in the CP.
- Add support for Regex in protected URLs.
- Fix protected URL comparison taking into account query strings, when it shouldn't.
- Add Craft 3.4 compatibility.
- Fix
yii\base\InvalidConfigException
error thrown in some instances.
- Added Custom login path. Thanks @X-Tender.
- Allow IPs to be whitelisted from login protection.
- Add Protected URLs to set specific URLs (and only those) for password protection.
- Update redirect input. = Fix redirection after login.
- Add lock-out and security behaviour.
- Add multi-site settings.
- Add custom template setting.
- New icon.
- Add override notice for settings fields.
- Fix console requests throwing an error.
- Downgrade requirement to Craft 3.0.x.
- Fix settings not saving.
- Added
enabled
setting.
- Initial release.