Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add IP-based block list to wp-config
** Why are these changes being introduced: * We are starting to see problematic site traffic, and want to have a way to block access to the application selectively. ** Relevant ticket(s): * https://mitlibraries.atlassian.net/browse/pw-86 ** How does this address that need: * This adds an ability to block specific IP addresses from getting site responses, sending a 403 status message instead. The list of blocked IP addresses is managed via environment variables. ** Document any side effects to this change: * There is a small increase in site overhead, as every page load will now be checked against the IP block list. However, this is done at the PHP level, without needing to spin up WordPress itself.
- Loading branch information