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

オープン
3 年 前david によって開かれました · 2 コメント
David Thielemann3 年 前 にコメントしました

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 Thielemann3 年 前 にコメントしました
オーナー

[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 Thielemann3 年 前 にコメントしました
オーナー

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 参加者
読み込み中…
キャンセル
保存
まだコンテンツがありません