无神通 大佬有话说 :
可能是吃灰小鸡最好的归宿
一句话,反代谷歌。
当然不是用 Nginx,而是用 Whoogle。国外的开源项目, Github 地址:
https://github.com/benbusby/whoogle-search
Whoogle 是元搜索引擎,也就是从上游的搜索引擎获取数据优化后展示。和 Searx 类似,但是 Searx 综合了好几个搜索引擎,Whoogle 专注谷歌。
主要特性:
无广告
无需 javascript
无需 cookies
无追踪
无 AMP 链接
无URL 追踪标签 (例如 utm=%s)
无 referrer 头
Tor 和 HTTP/SOCKS 支持
自动完成/搜索 建议
POST 请求搜索和建议请求 (当可能的时候)
无跳转查看全尺寸图片 (目前仅移动端)
暗黑模式
随机生成 User Agent
方便安装/部署
支持 DDG-风格的快速查询 (例如 !<tag> <query>)
可选的基于位置的查询 (例如 results near <city>)
可选的 NoJS 模式禁用结果中的所有 JS
即使去除众所周知的因素外,仍然有以上理由使用 Whoogle。与 Searx 相比,最大的优点还是部署方便,项目作者在 Readme 里用了大篇幅写如何安装和使用。下面是我比较喜欢的方法:
apt install python3-dev python3-venv libffi-dev libcurl4-openssl-dev libssl-dev
cd /opt
git clone https://github.com/benbusby/whoogle-search.git
cd whoogle-search
python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt
./run
这样 Whoogle 就运行在 5000 端口了。另外,使用 Systemd 设置开机启动,首先添加专门运行 whoogle的用户:
groupadd whoogle
useradd -s /sbin/nologin -M -g whoogle whoogle
chown -R whoogle:whoogle /opt/whoogle-search
编辑 /etc/systemd/system/whoogle.service :
Description=Whoogle
Type=simple
User=whoogle
WorkingDirectory=/opt/whoogle-search/
ExecStart=/opt/whoogle-search/venv/bin/python3 -um app –host 0.0.0.0 –port 5000
对于使用 Nginx 反代的,下面是主要的配置:
location / {
proxy_pass http://127.0.0.1:5000;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Host $server_name;
proxy_set_header X-Forwarded-Proto https;
proxy_read_timeout1200s;
client_max_body_size 0;
}
不想自己部署,想体验一下?这里有一些非官方部署的:
美国: https://whoogle.sdf.org
德国: https://search.garudalinux.org
美国(套 CF): https://s.alefvanoon.xyz
德国(套 CF):https://search.flux.industries
socpk 大佬有话说 :
好像意义不大,现在上谷歌的门槛已经很低了
叫我ams就好了 大佬有话说 :
还是mark一下