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

Отворено
отворено пре 3 година од david · 2 коментара
David Thielemann коментирира пре 3 година

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 коментирира пре 3 година
Власник

[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 затворено пре 3 година
David Thielemann коментирира пре 3 година
Власник

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 поново отворено пре 3 година"
Пријавите се да се прикључе у овом разговору.
Нема фазе
Нема одговорних
1 учесника
Учитавање...
Откажи
Сачувај
Још нема садржаја.