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

Open
3 jaren geleden werd geopend door david · 2 opmerkingen

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 reageerde 3 jaren geleden
Eigenaar

[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 gesloten om 3 jaren geleden
David Thielemann reageerde 3 jaren geleden
Eigenaar

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 heropend om 3 jaren geleden
Sign in to join this conversation.
Geen mijlpaal
Geen verantwoordelijke
1 deelnemers
Laden...
Annuleren
Opslaan
Er is nog geen inhoud.