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

Aperto
aperto 4 anni fa da david · 2 commenti
David Thielemann ha commentato 4 anni fa

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 ha commentato 4 anni fa
Proprietario

[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 ha commentato 4 anni fa
Proprietario

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 riaperto 4 anni fa
Sign in to join this conversation.
Nessuna milestone
Nessun assegnatario
1 Partecipanti
Caricamento...
Annulla
Salva
Non ci sono ancora contenuti.