如何防范 http/0.9 逃避请求?[烧瓶]

Kyl*_*son 7 python http bad-request flask http-0.9

我的 AWS 服务器上收到了一些奇怪的 http 请求。我在它上面运行了一个 python3/flask v0.12 web 服务器。

有谁知道我是否应该担心以下要求?

无论如何使用flask自动拒绝旧的http请求(例如http/0.8或http/0.9)?

77.72.83.21 - - [18/Mar/2018 22:46:32] "?  *%à     Cookie: mstshash=Test" HTTPStatus.BAD_REQUEST -
77.72.83.21 - - [18/Mar/2018 22:46:34] code 400, message Bad HTTP/0.9 request type ('\x03\x00\x00*%à\x00\x00\x00\x00\x00Cookie:')
77.72.83.21 - - [18/Mar/2018 22:46:34] "?  *%à     Cookie: mstshash=Test" HTTPStatus.BAD_REQUEST -

213.202.230.144 - - [19/Mar/2018 11:11:00] code 400, message Bad HTTP/0.9 request type ('\x03\x00\x00/*à\x00\x00\x00\x00\x00Cookie:')
213.202.230.144 - - [19/Mar/2018 11:11:00] "?  /*à     Cookie: mstshash=Administr" HTTPStatus.BAD_REQUEST -
Run Code Online (Sandbox Code Playgroud)