blocked wp-cron.php
-
In order to use Full-WAF mode with a bedrock installation, I added
// Connect to the DB and store the link into "$GLOBALS['nfw_mysqli']": $GLOBALS['nfw_mysqli'] = new mysqli(env('DB_HOST'), env('DB_USER'), env('DB_PASSWORD'), env('DB_NAME'), env('DB_PORT')); // We need the table prefix too: $GLOBALS['nfw_table_prefix'] = env('DB_PREFIX');
to .htninja, however, calling https://example.com/wp/wp-cron.php does not trigger cron execution when Full-WAF is enabled. As a workaround, I am running NinjaFirewall in WordPress-WAF mode.
I tried to whitelist wp-cron.php via// Do not filter any HTTP request sent to a script located inside the /myfolder/ directory: if (strpos($_SERVER['wp-cron.php'], '/wp/') !== FALSE) { return 'ALLOW'; }
but this does change the behavior.
Viewing 11 replies - 1 through 11 (of 11 total)
Viewing 11 replies - 1 through 11 (of 11 total)
- The topic ‘blocked wp-cron.php’ is closed to new replies.