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

Nyitott
megnyitva ekkor: 3 éve david által · 2 hozzászólás

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 hozzászólt 3 éve
Tulajdonos

[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 lezárta ekkor: 3 éve
David Thielemann hozzászólt 3 éve
Tulajdonos

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 kinyitotta ekkor: 3 éve
Jelentkezzen be hogy csatlakozhasson a beszélgetéshez.
Nincs mérföldkő
Nincs megbízott
1 Résztvevő
Töltés...
Mégse
Mentés
Még nincs tartalom.