nginx empty user_agent method of blocking thunderbolt
- 2020-05-06 12:13:46
- OfStack
The following code says server {... } in
if ($http_user_agent ~ ^$) {
return 503;
}
if ($http_user_agent ~* "Mozilla/4.0\ \(compatible;\ MSIE\ 6.0;\ Windows\ NT\ 5.1;\ SV1;\ .NET\ CLR\ 1.1.4322;\ .NET\ CLR\ 2.0.50727\)") {
return 503;
}