怎么丢弃resp_ip中指定的IP #780
Unanswered
likevi9528
asked this question in
Q&A
Replies: 1 comment
-
drop_resp 确实会返回空,你这个需求听起来需要重新解析,所以你应该jump 到 一个新的解析sequence上 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
现有一个域名,经过国内外DNS解析会获得三个返回IP,但是其中有一个在国内访问不了(通过itdog和本地测出来)。有没有什么方法可以去掉这个IP。
我现在只能使用hosts解决这个问题,有没有什么方法只需要更新blackIpList,就会自动在resp_ip中去除blackIpList中的IP。
我的想法是下面的方式,但会导致返回空的IP。
tag: black_ipList
type: "ip_set"
args:
files:
- "./rules/custom_black_ipList.txt"
tag: world_resolve
type: "sequence"
args:
- matches: "resp_ip $black_ipList"
exec: drop_resp
Beta Was this translation helpful? Give feedback.
All reactions