Optimize Firewall failure
-
Good morning,
I’m stuggling to get the WF Firewall optimized (free version). In the Firewall Diganostics screen, the value for ‘WAF auto prepend active’ is set to No.
I’ve gone through the automated process, where it detected LiteSpeed/lsapi. The wordfence-waf.php file was created in the document root, the .user.ini was created in the document root, and .htacess was updated with the following:
<IfModule LiteSpeed>
php_value auto_prepend_file ‘/var/www/vhosts/*REMOVED FOR SECURITY*/wordfence-waf.php’
</IfModule>
<IfModule lsapi_module>
php_value auto_prepend_file ‘/var/www/vhosts/*REMOVED FOR SECURITY*/wordfence-waf.php’
</IfModule>
<Files “.user.ini”>
<IfModule mod_authz_core.c>
Require all denied
</IfModule>
<IfModule !mod_authz_core.c>
Order deny,allow
Deny from all
</IfModule>
</Files>If I run phpinfo() or click the ‘View System Config in a New Window’, the PHP config correctly shows the auto_prepend_file directive pointing to the wordfence-waf.php file.
I’ve even added in a couple of error_log(“Some Message”) lines directly in the wordfence-waf.php and the wordfence/waf/bootstrap.php file – when I refresh my website, these entries are written to the Apache Log files, so it seems that wordfence-waf and bootstrap are being fired, and yet the ‘WAF auto prepend active’ is still showing as No.
I’ve emailed my diagnostic report over to [email protected] in the hope that someone can help me.
Many thanks
Chris
The page I need help with: [log in to see the link]
- The topic ‘Optimize Firewall failure’ is closed to new replies.