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

能否禁用PAC只针对用户指定的rules工作? #496

Closed
016 opened this Issue Sep 17, 2017 · 9 comments

Comments

Projects
None yet
3 participants
@016

016 commented Sep 17, 2017

现在程序运行正常,但是Mac系统或者某些程序会自动访问一些地址,有些不需要通过SS,因为没有被Q,现在想禁用PAC或者把PAC变成空白的,然后手动指定需要访问的url

不知道有没有办法编辑或者设置PAC内容?

PS尝试修改为一个错误的网址,但是没有用。

@016

This comment has been minimized.

Show comment
Hide comment
@016

016 Sep 17, 2017

我尝试在网站挂了一个 aa.com/pac.txt 然后使用空文本,但是无效
有人能提供pac为空的时候的内容格式吗?

谢谢

016 commented Sep 17, 2017

我尝试在网站挂了一个 aa.com/pac.txt 然后使用空文本,但是无效
有人能提供pac为空的时候的内容格式吗?

谢谢

@iamHXQ

This comment has been minimized.

Show comment
Hide comment
@iamHXQ

iamHXQ Sep 17, 2017

pac用户自定义规则加一行输入下面这三个字符就行了,这样就会代理所有内容。
||*
@@表示跳过

这是我的,你可以直接复制粘贴。
! Put user rules line by line in this file.
! See https://adblockplus.org/en/filter-cheatsheet
||*
@@.ali
@@.cn
@@.le
@@126.net
@@163.com
@@1688.com
@@360.com
@@360buyimg.com
@@360doc.com
@@36kr.com
@@36krcdn.com
@@58.com
@@58cdn.c
@@amazon.c
@@baidu
@@baydn
@@bdimg
@@bdstatic
@@Bilibili
@@bing.com
@@cctv
@@china
@@csdn
@@ctrip
@@dianping.com
@@douban
@@eastday.com
@@ele.me
@@gtimg.com
@@hdslb.c
@@hexun
@@huaxia
@@huanqiu
@@ifeng
@@jd.com
@@jd.hk
@@kugou
@@meiju
@@meituan.com
@@NetEase
@@pstatp.com
@@qq.com
@@qunar
@@qiyi
@@shanbay
@@shimo.im
@@sina
@@suning.com
@@sohu
@@sougou
@@taobao
@@tenso
@@tianya
@@tmall
@@toutiao.com
@@ttsqgs.com
@@tudou
@@weibo
@@xinhuanet
@@xmcdn.c
@@xunlei.com
@@yahoo
@@ykimg.com
@@youdao.com
@@zhaopin.com
@@zhihu

@@apple.com
@@iCloud

iamHXQ commented Sep 17, 2017

pac用户自定义规则加一行输入下面这三个字符就行了,这样就会代理所有内容。
||*
@@表示跳过

这是我的,你可以直接复制粘贴。
! Put user rules line by line in this file.
! See https://adblockplus.org/en/filter-cheatsheet
||*
@@.ali
@@.cn
@@.le
@@126.net
@@163.com
@@1688.com
@@360.com
@@360buyimg.com
@@360doc.com
@@36kr.com
@@36krcdn.com
@@58.com
@@58cdn.c
@@amazon.c
@@baidu
@@baydn
@@bdimg
@@bdstatic
@@Bilibili
@@bing.com
@@cctv
@@china
@@csdn
@@ctrip
@@dianping.com
@@douban
@@eastday.com
@@ele.me
@@gtimg.com
@@hdslb.c
@@hexun
@@huaxia
@@huanqiu
@@ifeng
@@jd.com
@@jd.hk
@@kugou
@@meiju
@@meituan.com
@@NetEase
@@pstatp.com
@@qq.com
@@qunar
@@qiyi
@@shanbay
@@shimo.im
@@sina
@@suning.com
@@sohu
@@sougou
@@taobao
@@tenso
@@tianya
@@tmall
@@toutiao.com
@@ttsqgs.com
@@tudou
@@weibo
@@xinhuanet
@@xmcdn.c
@@xunlei.com
@@yahoo
@@ykimg.com
@@youdao.com
@@zhaopin.com
@@zhihu

@@apple.com
@@iCloud

@016

This comment has been minimized.

Show comment
Hide comment
@016

016 Sep 19, 2017

@myHXQ 有办法让所有内容都不走代理吗? 然后单条加白名单

016 commented Sep 19, 2017

@myHXQ 有办法让所有内容都不走代理吗? 然后单条加白名单

@timothyqiu

This comment has been minimized.

Show comment
Hide comment
@timothyqiu

timothyqiu Sep 19, 2017

Contributor

This can be done in two ways:

  • Point your GFW List URL to an empty file, and click "Update PAC from GFW List".
  • Or, make ~/.ShadowsocksX-NG/gfwlist.txt an empty file, click "Edit User Rules For PAC", and then "OK".

This can be verified by checking ~/.ShadowsocksX-NG/gfwlist.js. The rules array on the 6th line should contain your custom rules only (or nothing if you have no custom rules) after you have done.

Contributor

timothyqiu commented Sep 19, 2017

This can be done in two ways:

  • Point your GFW List URL to an empty file, and click "Update PAC from GFW List".
  • Or, make ~/.ShadowsocksX-NG/gfwlist.txt an empty file, click "Edit User Rules For PAC", and then "OK".

This can be verified by checking ~/.ShadowsocksX-NG/gfwlist.js. The rules array on the 6th line should contain your custom rules only (or nothing if you have no custom rules) after you have done.

@iamHXQ

This comment has been minimized.

Show comment
Hide comment
@iamHXQ

iamHXQ Sep 19, 2017

@016 pac用户自定义规则加一行输入下面这三个字符就行了,这样就会代理所有内容。
||*

iamHXQ commented Sep 19, 2017

@016 pac用户自定义规则加一行输入下面这三个字符就行了,这样就会代理所有内容。
||*

@iamHXQ

This comment has been minimized.

Show comment
Hide comment
@iamHXQ

iamHXQ Sep 19, 2017

@016 pac默认跳过的网站可以去修改timothyqiu说的那个文件,在“home”目录下面。(显示隐藏文件快捷键:command+shift+.)

iamHXQ commented Sep 19, 2017

@016 pac默认跳过的网站可以去修改timothyqiu说的那个文件,在“home”目录下面。(显示隐藏文件快捷键:command+shift+.)

@iamHXQ

This comment has been minimized.

Show comment
Hide comment
@iamHXQ

iamHXQ Sep 19, 2017

@@,,,,,两个@@开头是自定义的白名单。

iamHXQ commented Sep 19, 2017

@@,,,,,两个@@开头是自定义的白名单。

@016

This comment has been minimized.

Show comment
Hide comment
@016

016 Sep 19, 2017

@timothyqiu I tried the first one, use an empty .txt file in pac url, then click "Update PAC from GFW List" the App shows "Update fail", you can try it yourself.

I will try the second one soon. many thx.

016 commented Sep 19, 2017

@timothyqiu I tried the first one, use an empty .txt file in pac url, then click "Update PAC from GFW List" the App shows "Update fail", you can try it yourself.

I will try the second one soon. many thx.

@016

This comment has been minimized.

Show comment
Hide comment
@016

016 Sep 21, 2017

最终解决了,具体解决方法见下面的link
http://yiilib.com/topic/750/ShadowSocks-NG+%E4%BD%BF%E7%94%A8%E7%99%BD%E5%90%8D%E5%8D%95%E6%A8%A1%E5%BC%8F
最后感谢 各位的帮助。

016 commented Sep 21, 2017

最终解决了,具体解决方法见下面的link
http://yiilib.com/topic/750/ShadowSocks-NG+%E4%BD%BF%E7%94%A8%E7%99%BD%E5%90%8D%E5%8D%95%E6%A8%A1%E5%BC%8F
最后感谢 各位的帮助。

@016 016 closed this Sep 21, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment