@jethrotull
In your php.ini file in the root of the live site, check for the following:
auto_prepend_file = /home/customer/www/staging2.josteltd.com/public_html/wordfence-waf.php
If you see it there, remove that. You will then want to do the following:
Go to your SiteGround cPanel and go to PHP Variables Manager. Click the sub-folder that your current live WordPress site is located in there. If it is in public_html, click that.
You will then see a field where you can enter a variable. Enter: auto_prepend_file there and click add. You will see a new field come up for auto_prepend_file where you can enter a path. We will return here in a second.
In a new tab, go back to your live site and goto Wordfence > Firewall > All Firewall Options. Click the Optimize the Wordfence Firewall button and then click the dropdown box and select Manual Configuration at the bottom, then continue. You will then see something similar to this:
auto_prepend_file = ‘/home/sitename/public_html/subfolder/wordfence-waf.php’
Just copy the path inside the single quote characters, in my case, /home/sitename/public_html/subfolder/wordfence-waf.php
Go back to your PHP Variables Managers tab and paste that path you copied into the auto_prepend_file field and click the checkbox for Apply changes to all sub-directories? and click Save. Make sure the confirmation screen has no errors, then go back to your site and refresh it. The firewall should be at 100%.
Hi wfscott (@wfscott)
Really appreciate your detailed response.
I must have missed something because I got locked out of my own site.
Have only just got back into the WP dashboard and will try again.
Thanks for your help
jebr