Hi @azzepis,
I’m not seeing the auto_prepend_file
value from your screenshot being acknowledged in your site diagnostics. Sometimes, ini files in locatons like the /etc/php/7.4/fpm/conf.d directory can reset the user_ini.filename
to an empty value. You may need to consult your host about this if you don’t have access to this location.
On some servers, you could use FTP or a file manager to access your .htaccess file in the root directory and make sure this code is input:
# Wordfence WAF
<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>
# END Wordfence WAF
Then also, in the same directory, edit your .user.ini file with this code:
; Wordfence WAF
auto_prepend_file = '/your/path/to/wordfence-waf.php'
; END Wordfence WAF
Make sure to change the path above with the one where wordfence-waf.php actually resides.
There is some more information around adding this code and how to manually optimize the firewall here: https://www.wordfence.com/help/firewall/optimizing-the-firewall/#firewall-optimization-setup
Let me know what you find out!
Peter.