通过 nginx 搞了一个反代,整合 谷歌学术, V2EX ,知乎等搜索的页面

2015-09-01 18:26:48 +08:00
 arnofeng

原由

网址和注意事项

一些无所谓的说明

1.Use SSL/https to ensure safety;
2.Forbid popular spiders like Google 、 Baidu;
3.Forbid any illegal refer;
4.Forbid any illegal robot;
5.Limit frequency of the same IP at 10 times in 1 second;
6.Can only access this site by typing the domian or using bookmarks;
7.If pages show "403 Forbid",try to delete "cookies" in your browser;

16287 次点击
所在节点    互联网
141 条回复
luckykong
2016-01-01 22:31:45 +08:00
@arnofeng 好像有错误
···
echo "your google search domain is $DOMAIN2"
echo "your google scholar domain is $DOMAIN1"
echo -n "Enter any key to continue ... "
···
这部分, domain2 和 domain1 ,是不是搞混了?
arnofeng
2016-01-01 22:37:22 +08:00
@luckykong 谢谢,我修复下
GPU
2016-01-02 01:04:17 +08:00
@arnofeng 撒花。 明天部署一个。 么么哒。
sky170
2016-01-02 01:29:41 +08:00
感谢开源
arnofeng
2016-01-02 15:44:00 +08:00
@GPU 部署哪儿啦 给我看看
@sky170 应该的
GPU
2016-01-02 17:30:34 +08:00
@arnofeng 还没有呢 。 今天赶着把路由器搞好。
GPU
2016-01-03 16:06:07 +08:00
@arnofeng 貌似用不到啊 。

g.iu.vc : ERR_EMPTY_RESPONSE
x.iu.vc : 跳回去谷歌域名了
GPU
2016-01-03 16:27:56 +08:00
@arnofeng 不明真相 。重啓了幾次 nginx 之後 ,現在又正常了 。 配置文件都沒有動過 。

只有把日誌記錄的註釋取消掉 ,現在又加回去又正常了。
arnofeng
2016-01-03 16:32:38 +08:00
arnofeng
2016-01-03 18:21:11 +08:00
@GPU 你的现在还有问题,学术倒是没问题。有没有再装一次?
GPU
2016-01-03 19:23:30 +08:00
@arnofeng 现在应该好了 , g.iu.vc 解析了两个不同 ip
arnofeng
2016-01-03 19:37:12 +08:00
@GPU 你的还是不行,用下面的命令更新下 nginx.conf
https://github.com/arnofeng/ngx_google_deployment/issues/1
GPU
2016-01-03 19:40:40 +08:00
@arnofeng 已更新。
GPU
2016-01-03 19:41:19 +08:00
@arnofeng 直接打开 x.iu.vc 还是跳
arnofeng
2016-01-03 19:50:27 +08:00
@GPU 已经根据你的问题测试和分析
原因找到了 是由于你是香港服务器, google 会根据你的地理位置 加.hk 所以很多时间会跳转。
arnofeng
2016-01-03 19:53:39 +08:00
GPU
2016-01-03 20:15:01 +08:00
@arnofeng 明白了.
arnofeng
2016-01-03 21:03:01 +08:00
@GPU 用了 ncr 方式 解决地区服务器问题 可以麻烦你再更新 nginx.conf 吗
GPU
2016-01-03 21:35:48 +08:00
@arnofeng 已经更新并重启 ,用的是 #116 链接里面的更新方法.
arnofeng
2016-01-03 21:38:54 +08:00
@GPU 那个方式也换了。直接更新 conf 脚本,
wget -N --no-check-certificate https://raw.githubusercontent.com/arnofeng/ngx_google_deployment/master/install.sh

bash install.sh

选择 "update nginx.conf"。

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://tanronggui.xyz/t/217643

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX