Integration with WP Engine
-
I’m getting 0 blocks and nothing in log, a few days after enabling the plugin. I have firewall enabled with default settings on a WP Engine site. There is enough bot traffic on the site that I would have expected to accumulate something in logs by now.
I get this alert next to CDN detection:
HTTP_CF_CONNECTING_IP detected: you seem to be using Cloudflare CDN services. Ensure that you have setup your HTTP server or PHP to forward the correct visitor IP, otherwise use the NinjaFirewall .htninja configuration file.
I create a .htninja file in the root directory (same as wp-config.php) and add the snippet as per the support docs:if (! empty($_SERVER["HTTP_CF_CONNECTING_IP"]) &&
filter_var($_SERVER["HTTP_CF_CONNECTING_IP"], FILTER_VALIDATE_IP)) {
$_SERVER["REMOTE_ADDR"] = $_SERVER["HTTP_CF_CONNECTING_IP"];
}My file does appear next to “Optional configuration file”. But I still get no blocks and nothing in log. The CDN detection error is still appearing.
Any advice to make the plugin work on WP Engine?
You must be logged in to reply to this topic.