Changelog

2.0.14 2025-11-29

Changed

  • Ensure rendering templates set a no-cache header for Craft Cloud.

2.0.13 2025-07-18

Changed

  • Update English translations.

2.0.12 2024-07-21

Added

  • Allow enabled to be set using a callback function in config files.

Changed

  • Update English translations.

Fixed

  • Fix multi-site protected/unprotected URLs not being honoured.

2.0.11 2023-11-09

Changed

  • Action request endpoints are now no longer protected.

Fixed

  • Fix too-early call on User::getIdentity() when plugin is disabled, for better performance.

2.0.10 2023-06-05

Fixed

  • Fix an error when checking the enabled state of the plugin.

2.0.9 2023-05-27

Added

  • Add Cache-Control headers when redirecting.

Fixed

  • Fix an incorrect check for enabled state for multi-site installs.

2.0.8 2023-03-02

Fixed

  • Fix unprotectedUrls as a config option not working correctly.

2.0.7 2023-01-18

Changed

  • Only admins are now allowed to access plugin settings.

Fixed

  • Fix Protected URLs/Unprotected URLs not working correctly for multiple values when set via the control panel.

2.0.6 2022-12-10

Added

  • Add enableCpProtection plugin setting.

Fixed

  • Fix login challenge when accessing the control panel.

2.0.5 2022-11-16

Fixed

  • Fix an error introduced in 2.0.4.

2.0.4 2022-11-15

Added

  • Add support for Cloudflare remote IP checking.
  • Add support to block CP-based pages, not just site-based requests.

2.0.3 2022-10-19

Fixed

  • Fix an issue with live preview checks for access control.

2.0.2 2022-07-13

Fixed

  • Fix protectedUrls, and unprotectedUrls URLs partial-matching incorrectly due to Regex rules.
  • Better normalising of allowIps, denyIps, protectedUrls, and unprotectedUrls settings.
  • Revert infinite loop check, which results in incorrect redirect URLs.

2.0.1 2022-07-12

Fixed

  • Fix an error when installing the plugin.

2.0.0 2022-07-10

Added

  • Add resave console command for elements.
  • Add checks for registering events for performance.
  • Add archiveTableIfExists() to install migration.

Changed

  • 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.