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

Otevřený
otevřeno před 3 roky uživatelem david · 2 komentářů

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 okomentoval před 3 roky
Vlastník

[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 Thielemann okomentoval před 3 roky
Vlastník

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 znovuotevřel před 3 roky
Přihlaste se pro zapojení do konverzace.
Bez milníku
Bez zpracovatele
1 účastníků
Načítání...
Zrušit
Uložit
Není zde žádný obsah.