From 00326cfcaa3d0c5d53ec7dc82e27d6b36c7b7cfd Mon Sep 17 00:00:00 2001 From: Wildan M Date: Sun, 15 Dec 2024 16:00:25 +0700 Subject: [PATCH] nginx --- src/executor/nginx.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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');