when I test such a request to my openresty server 1.19.9.1 on ubuntu facol, I got the reply:
HTTP/1.1 400 Bad Request
Server: openresty
Date: Fri, 24 Sep 2021 07:01:05 GMT
Content-Type: text/html; charset=utf8
Content-Length: 154
Connection: close
<html>
<head><title>400 Bad Request</title></head>
<body>
<center><h1>400 Bad Request</h1></center>
<hr><center>openresty</center>
</body>
</html>
the problem is :
1, my lua code cannot get this request. is there andy item in /usr/local/openresty/nginx/conf/nginx.conf can make lua code be aware of this kind of request. so we can block the client ip by lua.
2, if we cannot do no.1, can we hide the message "openresty" at both http header and http body? I have try "server_tokens off;" but it worked only when a normal request , not function at the "\0x03\0x00" like requests.
thanks for any tips .