mozilla / releases_insights

Parse various sources (hg log, apis, crashes…) to get some insights on past releases such as uplifts per beta, top crash signatures per nightly…
Mozilla Public License 2.0
27 stars 8 forks source link

Automatically ban suspicious IPs #40

Closed pascalchevrel closed 1 year ago

pascalchevrel commented 1 year ago

Some visitors are looking for Wordpress vulnerabilities which is causing log spam with 404s. Maybe just collecting IPs that try to load an url starting with /wp-admin/ or /wp-content and immediately banning them would work.

  1. Detect the IP on access to wordpress-like urls
  2. Add the IP to a cached array
  3. start the router work by comparing a visitor IP with this list and display an error message

The downside would be that this list would be cleared on each deploy as we empty the cache.

pascalchevrel commented 1 year ago

This is done. Caveats:

Probably enough to remove most of the log spam.