This way blocking of access on website level will be truly functional.
Implementation thoughts:
Feature is turned off by default.
The .htaccess file in root directory must exist already for the feature to be available.
WP-Cron must be invoked by true cron, ie. define('DISABLE_WP_CRON', true); must be set.
No Apache version guessing - leave it to user to decide what type of rules should be saved to .htaccess: Apache 2.3 and older, Apache 2.3 and newer or both.
This way blocking of access on website level will be truly functional.
Implementation thoughts:
.htaccess
file in root directory must exist already for the feature to be available.WP-Cron must be invoked by true cron, ie.define('DISABLE_WP_CRON', true);
must be set..htaccess
: Apache 2.3 and older, Apache 2.3 and newer or both.