The files in wp-content/wflogs/ contain Firewall configuration data and information on blocked attacks. The Firewall needs these files because it can run before WordPress has loaded, and the database is usually not available at that time. Files included in the wflogs directory are config.php, config-livewaf.php, config-synced.php, config-transient.php, attack-data.php, ips.php, rules.php, GeoLite2-Country.mmdb, and .htaccess. Some hosts may have additional temporary files in this directory with similar names, and some may also have temporary files with long names containing the letters “nfs”.
Some of these files begin with a line that says “<?php exit(‘Access denied’); __halt_compiler(); ?>”. This prevents anyone from viewing the file contents in a web browser even if the webserver does not support .htaccess files while allowing the rest of the contents to be read as data. Much of the data is encoded or in a binary format for various reasons, including performance.
The last rules update for the Wordfence Web Application Firewall was unsuccessful. The last successful update check was…
I keep seeing that error and dismissing it only works temporarily. What’s the fix?
First, to fix this problem is very simple, you only wait for the next Wordfence plugin update.
Updates the rules manually
Another fix can solve the issue where clicking “manually update” notice in the WordPress panel
Can’t dismiss the error, can’t update the rules manually
If that doesn’t work can you try deleting the rules.php file in wp-content/wflogs, Wordfence will generate rules.php again.