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

Mở
%! (template.HTML=3 năm trước cách đây)đang mở bởi david · 2 ý kiến

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 đã nhận xét 3 năm trước cách đây
Chủ sở hữu

[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 đã nhận xét 3 năm trước cách đây
Chủ sở hữu

But... if it's miss spelled then we won't detect it.

But... if it's miss spelled then we won't detect it.
Đăng nhập để tham gia bình luận.
Không có Milestone
Không có người được phân công
1 tham gia
Đang tải...
Hủy bỏ
Lưu
Ở đây vẫn chưa có nội dung nào.