nginx 1.19.9
我有这样的网址
https://example.com/test?mindbox-message-key=...
https://example.com/men?mindbox-message-key=...
https://example.com/women?mindbox-message-key=...
https://example.com/chile?mindbox-message-key=...
我需要屏蔽一些 IP。我该怎么做?
答案1
server {
...
location /my-custom-url {
if ($args ~* "mindbox-message-key") {
deny all;
}
}
...
}