Comments (7)
参阅readme.md主要配置一节。最好安装curl扩展。
主要配置**/proxy/proxy_conf.php和/search.php**
前者中的'proxy'=>true,'proxyHost'=>'127.0.0.1', 'proxyPort'=>8080,
部分控制了服务器端访问百度和谷歌的方式。海外VPS无需通过代理访问Google(设置'proxy'为false),国内的请自备代理。
后者的
$googleurl='./proxy/proxy.php?engine=google&q='; // local proxy
$baiduurl='./proxy/proxy.php?engine=baidu&q=';
控制是否通过服务器反向代理访问百度和谷歌(框架的地址)。由于Google的iframe策略,$googleurl保持不变,为了美化显示效果$baiduurl也可以保持不变。
from searchit.
你好,麻烦你了,我修改了直连,因为是洛杉矶的vps,但是google页面没有东西
百度的有,s.hatebug.com,麻烦帮看一下,谢谢
proxy_conf.php修改的内容(不过是不是与这个没有关系,没走代理啊)
from searchit.
不好意思刚刚看到回复XD
你的情况下 $googleurl $baiduurl 不能这样设置,因为:
此选项控制浏览器访问百度和谷歌的方式,如果浏览器在国内则无法正常访问谷歌。
由于Google的frame同源策略(x-frame-options:SAMEORIGIN),Google即使能连接,也会无法正常显示。
一般来说国外VPS国内使用的话,百度部分无所谓,谷歌应该使用/proxy/proxy.php才能绕过frame同源策略。
from searchit.
右侧frame内的google搜索点击下一页或者选其它数字会跳转到一个新窗口,并直接使用google搜索,请问怎么处理一下?
from searchit.
你好,在我的实际使用过程中几乎从来没有用过翻页,所以并没有做反向代理proxy.php部分的翻页功能,而是通过在头部添加
<base href="https://www.google.com/" target="_blank" />
,
点击之后直接在新窗口中打开Google。如果你经常要用到翻页,建议可以在config.php 里面找到Google的URL,把页码部分(num=20)改大一点。一般来说再加上选好关键词搜索很少用到翻页。
from searchit.
请问提示如下错误怎么处理?谢谢
SSL certificate: /volume2/web/baigoogledu/proxy/cert/baidu.com.crt
from searchit.
应该同时还有一个 Curl error: xxx 的报错,把那个贴上来吧
from searchit.
Related Issues (1)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from searchit.