diff --git a/src/executor/nginx.js b/src/executor/nginx.js index b011b91..4da07e6 100644 --- a/src/executor/nginx.js +++ b/src/executor/nginx.js @@ -197,7 +197,7 @@ class NginxExecutor { } node.location[idx]._add('if', `($http_referer !~ "^https?://${info.dom}")`); node.location[idx]._add('if', `($http_user_agent ~ "^Mozilla")`); - node.location[idx]._add('if', `$reject = "12"`); + node.location[idx]._add('if', `($reject = "12")`); node.location[idx].if[0]._add('set', '$reject "${reject}1"'); node.location[idx].if[1]._add('set', '$reject "${reject}2"'); node.location[idx].if[2]._add('rewrite', '^ /deceptive.html last');