Skip to content

Commit

Permalink
nginx
Browse files Browse the repository at this point in the history
  • Loading branch information
willnode committed Dec 15, 2024
1 parent ea8698b commit 00326cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/executor/nginx.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down

0 comments on commit 00326cf

Please sign in to comment.