Thanks for reaching out.
That by itself wouldn’t necessarily mean the site was compromised. What you need to do to fix it is to use your FTP access and look for the .user.ini file in the root of the WordPress installation.
The code you want to look for (if there is a lot of code there. Sometimes there isn’t) should say
; Wordfence WAF
auto_prepend_file = '/home/www/sitename/wordfence-waf.php'
; END Wordfence WAF
Note : Obviously sitename will be your sitename
What you can do is remove the whole block of code and save. The site should be available now. You’ll need to re-optimize the firewall at this point.
I would also follow up with a full scan, making sure that these scan options are checked.
- Scan for signatures of known malicious files
- Scan file contents for backdoors, trojans and suspicious code
- Scan files outside your WordPress installation
- Scan core files against repository versions for changes
- Scan theme files against repository versions for changes
- Scan plugin files against repository versions for changes
Because you think you might be hacked, following this guide to using Wordfence to clean a hacked site might be a good idea.
https://www.wordfence.com/docs/how-to-clean-a-hacked-wordpress-site-using-wordfence/
Additionally you might find the WordPress Malware Removal section in our free Learning Center helpful:
https://www.wordfence.com/learn/
Make sure and get all your plugins and themes updated and update WordPress core too. If you are on an older branch (WordPress 4.x etc) because you wanted to wait before installing the latest version because of Gutenberg or a custom theme compatibility you still need the latest update in that version.
As a rule, any time I think someone’s site has been compromised I tell them to update their passwords for their hosting control panel, FTP, WordPress admin users, and database.
If you are unable to clean this on your own there are paid services that will do it for you. Wordfence offers such a service for this. Regardless if you choose to clean it yourself or let someone else do so, it’s always a good idea to make a full backup of the site beforehand.
Tim