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

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

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 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 участника
Зареждане...
Отказ
Запис
Все още няма съдържание.