#3 Change the way we detect "invalid" / "banned" usernames

Offen
vor 3 Jahren geöffnet von david · 2 Kommentare

Go from reading the "msg" field to "username" field...

This way we can block names like:

  • root (which currently is the only one blocked)
  • postgres
  • etc...

Should be as simple as

if j["username"] in bad_users:
    # they are a bad user, block them!
Go from reading the "msg" field to "username" field... This way we can block names like: * root (which currently is the only one blocked) * postgres * etc... Should be as simple as ``` if j["username"] in bad_users: # they are a bad user, block them! ```
David Thielemann kommentierte vor 3 Jahren
Besitzer

[9a9d5921c9] fixes this so we can just add it to the JSON then restart the script.

[9a9d5921c9] fixes this so we can just add it to the JSON then restart the script.
david hat vor 3 Jahren geschlossen
David Thielemann kommentierte vor 3 Jahren
Besitzer

But... if it's miss spelled then we won't detect it.

But... if it's miss spelled then we won't detect it.
david hat vor 3 Jahren wieder geöffnet
Anmelden, um an der Diskussion teilzunehmen.
Kein Meilenstein
Niemand zuständig
1 Beteiligte
Laden…
Abbrechen
Speichern
Hier gibt es bis jetzt noch keinen Inhalt.