Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add IP-based block list to wp-config #149

Merged
merged 1 commit into from
Feb 16, 2024
Merged

Add IP-based block list to wp-config #149

merged 1 commit into from
Feb 16, 2024

Commits on Feb 16, 2024

  1. 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.
    matt-bernhardt committed Feb 16, 2024
    Configuration menu
    Copy the full SHA
    2d11048 View commit details
    Browse the repository at this point in the history