Title: Proxy   Firewall issues
Last modified: August 31, 2016

---

# Proxy Firewall issues

 *  [rendal101](https://wordpress.org/support/users/rendal101/)
 * (@rendal101)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/proxy-firewall-issues/)
 * I updated WordFence yesterday, after updating WordPress core.
    The site I manage
   runs behind a url-masking proxy, which up until the WF update worked without 
   any problems.
 * When I was suggested to implement the firewall feature, I thought it sounded 
   like a good idea.However, after enabling it I found I couldn’t connect to the
   main site (backend was still accessible – thank goodness!).
 * The browser shows redirection errors / loops. (chrome throws the error message:“
   ERR_TOO_MANY_REDIRECTS”).
 * I have tried to disable the firewall from within wordfence options, as well as
   removing the additions to the .htaccess file, and deleting ‘wordfence-waf.php’
   and ‘.user.ini’ from the directory of the wordpress install.
 * The site is still throwing the same errors, and i cannot access the main site.
   Could you please advise how I might be able to reinstate the site?
 * Thank you.
 * [https://wordpress.org/plugins/wordfence/](https://wordpress.org/plugins/wordfence/)

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Plugin Author [WFMattR](https://wordpress.org/support/users/wfmattr/)
 * (@wfmattr)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/proxy-firewall-issues/#post-7274837)
 * Hi,
 * Did your site originally have a .user.ini file? (You would have been prompted
   to download it during the installation, if so.) If it did, can you replace that
   file?
 * In the .htaccess file, on many setups, there can also be some code related to
   the firewall — if you can upload the backup copy of .htaccess, that may help 
   as well.
 * If the .htaccess and .user.ini were restored to the originals, there shouldn’t
   be anything else causing a redirect loop, but you could try disabling the plugin
   itself — do you know if the front end of the site was working after the WordPress
   4.5 update, but before the Wordfence update?
 * -Matt R
 *  Thread Starter [rendal101](https://wordpress.org/support/users/rendal101/)
 * (@rendal101)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/proxy-firewall-issues/#post-7274916)
 * I was only prompted to download a copy of the .htaccess file.
 * I’ve reinstated the original .htaccess (stripped out reference to wordfence stuff,
   now it only has the original wordpress code in there).
 * I removed the .user.ini file, as well as the wordfence-waf.php file from that
   root directory. I have also disabled the wordfence plugin.
 * The site was working perfectly after WordPress 4.5 update, prior to wordfence
   update. in fact, it was working after wordfence update too — it was only after
   attempting to setup the firewall that it stopped working…
 * It still refuses to load.
    Adding /index.php to the end of the tld makes it load;
   other pages will load too (from navigation / direct url) however, images aren’t
   loading.
 * Thoughts?
    Would WF have touched php.ini at all?
 *  Plugin Author [WFMattR](https://wordpress.org/support/users/wfmattr/)
 * (@wfmattr)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/proxy-firewall-issues/#post-7275080)
 * Hi,
 * Wordfence doesn’t automatically change php.ini. If other pages won’t load, it
   sounds like WordPress’s permalinks are not working. If the admin pages are working
   fine, just go to the Settings > Permalinks menu, note the current option (just
   in case you have further trouble), and save the settings. I don’t think you even
   have to change them, but Wordfence should update any missing settings internally.
   I haven’t seen this happen from installing or removing the firewall, so I’m not
   sure what would cause it.
 * -Matt R
 *  Thread Starter [rendal101](https://wordpress.org/support/users/rendal101/)
 * (@rendal101)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/proxy-firewall-issues/#post-7275081)
 * Interesting… so what does this line in ‘wordfence-waf.php’ actually mean:
 * `// Before removing this file, please verify the PHP ini setting`auto_prepend_file`
   does not point to this.`
 * ?
 * However, you were right… it is something to do with the permalinks; setting it
   back to ‘plain’ (where it uses id’s) seems to be working. Unfortunately, switching
   back to a custom permalink structure renders the site inaccessible again.
 * Any thoughts on that one? 🙂 😛

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Proxy Firewall issues’ is closed to new replies.

 * ![](https://ps.w.org/wordfence/assets/icon.svg?rev=2070865)
 * [Wordfence Security - Firewall, Malware Scan, and Login Security](https://wordpress.org/plugins/wordfence/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wordfence/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wordfence/)
 * [Active Topics](https://wordpress.org/support/plugin/wordfence/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wordfence/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wordfence/reviews/)

## Tags

 * [.htacess](https://wordpress.org/support/topic-tag/htacess/)
 * [firewall](https://wordpress.org/support/topic-tag/firewall/)
 * [redirect error](https://wordpress.org/support/topic-tag/redirect-error/)
 * [user.ini](https://wordpress.org/support/topic-tag/user-ini/)
 * [wordfence-waf](https://wordpress.org/support/topic-tag/wordfence-waf/)

 * 4 replies
 * 2 participants
 * Last reply from: [rendal101](https://wordpress.org/support/users/rendal101/)
 * Last activity: [10 years, 1 month ago](https://wordpress.org/support/topic/proxy-firewall-issues/#post-7275081)
 * Status: not resolved