Skip to content

Commit

Permalink
add some sites
Browse files Browse the repository at this point in the history
  • Loading branch information
URenko committed Dec 8, 2018
1 parent 7085978 commit 8655636
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 5 deletions.
10 changes: 8 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
# Accesser
一个解决GFW通过[检测server_name](https://github.com/googlehosts/hosts/issues/87)导致中文维基、Pixiv等站点无法访问的工具
一个解决GFW通过[检测server_name](https://github.com/googlehosts/hosts/issues/87)导致中文维基、Pixiv等站点无法访问的工具
[支持的站点](https://github.com/URenko/Accesser/wiki/目前支持的站点)

## 一键使用
### Windows
[点此进入下载页](https://github.com/URenko/Accesser/releases/latest),下载Windows_x64.zip,解压后运行`start.bat`即可,首次运行可能会申请管理员权限
[点此进入下载页](https://github.com/URenko/Accesser/releases/latest),下载Windows_x64.zip,解压后运行`start.bat`即可,首次运行可能会申请管理员权限
[Firefox设置方法](https://github.com/URenko/Accesser/wiki/Firefox设置方法)

## 依赖
- Python3.7 (其他版本未测试)
Expand All @@ -28,3 +30,7 @@
|自动配置pac代理 || | |
|自动导入证书至系统 || | |
|自动导入证书至Firefox| | | |

## TODO
- [ ] Pixiv注册
- [ ] 自动证书配置(不用domains.txt)
7 changes: 6 additions & 1 deletion domains.txt
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,9 @@ px.srvcs.tumblr.com
96.media.tumblr.com
97.media.tumblr.com
www.google.com
www.recaptcha.net
www.recaptcha.net
instagram.com
www.instagram.com
www.quora.com
steamcommunity-a.akamaihd.net
steamuserimages-a.akamaihd.net
8 changes: 6 additions & 2 deletions pac.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,16 @@ var domains = {
"tumblr.com": 1,
"tumblr.co": 1,
"google.com": 1,
"recaptcha.net": 1
"recaptcha.net": 1,
"instagram.com": 1,
"quora.com": 1
};

var shexps = {
"*://zh.wikipedia.org/*": 1,
"*://ja.wikipedia.org/*": 1
"*://ja.wikipedia.org/*": 1,
"*://steamcommunity-a.akamaihd.net/*": 1,
"*://steamuserimages-a.akamaihd.net/*": 1
};

var proxy = "PROXY 127.0.0.1:7654;";
Expand Down
19 changes: 19 additions & 0 deletions setting.ini
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ check_hostname = 1
[http_redirect]
pixiv.net/ = www.pixiv.net/
www.google.com/recaptcha/ = www.recaptcha.net/recaptcha/
tumblr.com/ = www.tumblr.com/
instagram.com/ = www.instagram.com/

[alert_hostname]
# Because servers may return wrong certificate
Expand All @@ -16,9 +18,26 @@ www.google.com/recaptcha/ = www.recaptcha.net/recaptcha/
66.6.32.162 = www.tumblr.com
119.161.4.42 = www.tumblr.com
203.208.50.87 = www.google.cn
151.101.1.2 = fs.quoracdn.net

[HOSTS]
# the hosts here have a higher priority than the hosts file
accounts.pixiv.net = 210.140.131.184
www.pixiv.net = 210.140.131.180
www.recaptcha.net = 203.208.50.87
assets.tumblr.com = 152.199.38.136
24.media.tumblr.com = 152.199.38.136
25.media.tumblr.com = 152.199.38.136
31.media.tumblr.com = 152.199.38.136
33.media.tumblr.com = 152.199.38.136
37.media.tumblr.com = 152.199.38.136
38.media.tumblr.com = 152.199.38.136
40.media.tumblr.com = 152.199.38.136
49.media.tumblr.com = 152.199.38.136
55.media.tumblr.com = 152.199.38.136
56.media.tumblr.com = 152.199.38.136
57.media.tumblr.com = 152.199.38.136
66.media.tumblr.com = 152.199.38.136
www.quora.com = 151.101.1.2
steamcommunity-a.akamaihd.net = 23.48.201.90
steamuserimages-a.akamaihd.net = 23.48.201.90

0 comments on commit 8655636

Please sign in to comment.