- White List Mode with
socks5://127.0.0.1:1080https://blackwhite.txthinking.com/white.pac - Black List Mode with
socks5://127.0.0.1:1080https://blackwhite.txthinking.com/black.pac - White List Mode with
http://127.0.0.1:8080https://blackwhite.txthinking.com/http_white.pac - Black List Mode with
http://127.0.0.1:8080https://blackwhite.txthinking.com/http_black.pac
https://blackwhite.txthinking.com/white.listhttps://blackwhite.txthinking.com/white_cidr.listhttps://blackwhite.txthinking.com/white_app.listhttps://blackwhite.txthinking.com/black.listhttps://blackwhite.txthinking.com/black_cidr.listhttps://blackwhite.txthinking.com/black_app.list
$ addWhite.sh china.com$ addWhiteCIDR.sh 1.0.1.0/24$ addWhiteApp.sh com.tencent.mm$ addBlack.sh google.com$ addBlackCIDR.sh 74.125.0.0/16$ addBlackApp.sh com.android.chrome$ removeWhite.sh china.com$ removeWhiteCIDR.sh 1.0.1.0/24$ removeWhiteApp.sh com.tencent.mm$ removeBlack.sh google.com$ removeBlackCIDR.sh 74.125.0.0/16$ removeBlackApp.sh com.android.chrome
Don't edit list directly
Prefer first-level domain
Require go, nodejs installed, and run $ go get, $ npm install
# build white.pac
$ go run pac.go \
-m white \
-d https://blackwhite.txthinking.com/white.list \
-c https://blackwhite.txthinking.com/white_cidr.list \
-p 'SOCKS5 127.0.0.1:1080; SOCKS 127.0.0.1:1080; DIRECT' \
> white.pac
# build more and compress
$ ./build.sh
$ go run pac.go \
-m white \
-d https://blackwhite.txthinking.com/white.list \
-c https://blackwhite.txthinking.com/white_cidr.list \
-p 'SOCKS5 127.0.0.1:1080; SOCKS 127.0.0.1:1080; DIRECT' \
-l ':1980'
$ curl http://127.0.0.1:1980/proxy.pac