• Resolved jswoolf01

    (@jswoolf01)


    Our company’s building network switched to a new fiber-optic connection this morning. The new connection has a new public-facing IP address. A couple of applications on the network communicate with our website, so I searched the site for references to the old IP address with an eye to make sure they also knew about the new one. I found and fixed a couple of cases, but one I don’t know what to do with: a file in wp-content called “firewall.php”. It puts the old IP address in a variable called “$white_list”, and there’s a strongly worded warning that this code is dynamically created using WordPress filters and I should never edit it directly, because the changes will get overwritten.

    I searched the code for uses of “$white_list” and found many places where it’s referred to, but didn’t see any that set it. What part(s) of the website (programs, plugins, anything) set $white_list, and where/how can I find them to add the new IP address?

    Viewing 3 replies - 1 through 3 (of 3 total)
    • Samuel O.

      (@wpcoworker)

      By default WordPress does not provide any functionality to whitelist IPs.

      You can use a plugin like this: https://ww.wp.xz.cn/plugins/awesoft-ip-whitelist/

      Moderator threadi

      (@threadi)

      In addition: there is no firewall.php in WordPress. It must have been added to the project by a plugin you are using. You will need to find out which plugin it was and contact its support team if you have any questions.

      Thread Starter jswoolf01

      (@jswoolf01)

      Excellent advice, threadi. I read through the comments in firewall.php and found where it came from: the plugin “Really Simple Security”. That plugin’s settings page included the way to update it.

      Thanks.

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

    You must be logged in to reply to this topic.