这两天利用Google搜索结果处理一些东西,做好了,上传到主机上竟然无法使用,本地速度快,一切正常。检查了很多地方都没问题,把搜索URL换成百度的后竟然OK,写了个简单的代码:
<?php
$f = file_get_contents(“http://www.google.cn/search?rls=ig&hl=zh-CN&source=hp&q=123&aq=f&oq=”);
echo $f;
?
这是获取Google搜索“123”的结果URL源代码,上传到空间后,竟然显示以下错误:

Your client does not have permission to get URL /search?rls=ig&hl=zh-CN&source=hp&q=123&aq=f&oq= from this server. (Client IP address: 203.171.239.166)
Please see Google’s Terms of Service posted at http://www.google.com/terms_of_service.html
If you believe that you have received this response in error, please report your problem. However, please make sure to take a look at our Terms of Service (http://www.google.com/terms_of_service.html). In your email, please send us the entire code displayed below. Please also send us any information you may know about how you are performing your Google searches– for example, “I’m using the Opera browser on Linux to do searches from home. My Internet access is through a dial-up account I have with the FooCorp ISP.” or “I’m using the Konqueror browser on Linux to search from my job at myFoo.com. My machine’s IP address is 10.20.30.40, but all of myFoo’s web traffic goes through some kind of proxy server whose IP address is 10.11.12.13.” (If you don’t know any information like this, that’s OK. But this kind of information can help us track down problems, so please tell us what you can.)
We will use all this information to diagnose the problem, and we’ll hopefully have you back up and searching with Google again quickly!
Please note that although we read all the email we receive, we are not always able to send a personal response to each and every email. So don’t despair if you don’t hear back from us!
Also note that if you do not send us the entire code below, we will not be able to help you.
Best wishes,
The Google Team
似乎是无权限,真的很郁闷~~
25 条评论我要评论 »
1 - 歪豆 | 2009-10-30 at 18:57
大片大片的E文,觉得头很晕
[回复]
@歪豆, 呵呵,我也很头晕
[回复]
2 - 小强 | 2009-10-30 at 20:22
人家Google的东西是你能随便要的么?
[回复]
@小强, 5555555555555555,我错了
[回复]
@小强, 找了很多方法,果然很难获取
[回复]
3 - 吴熠 | 2009-10-30 at 21:06
一看见英语我就糊涂。不过前面的代码例外。
[回复]
4 - 游戏资讯 | 2009-10-31 at 08:24
路过,来看看,希望回访…
[回复]
@游戏资讯, 已回访,贵站相当漂亮
[回复]
5 - 软件开发 | 2009-10-31 at 08:29
很不错的博客,交换下友情链接不?
[回复]
@软件开发, 不好意思了,本博已经暂停交换链接了,(*^__^*) ……
[回复]
6 - 传3 | 2009-10-31 at 10:01
为什么?能说说吗
[回复]
@传3, 是Google禁止抓取了
[回复]
7 - 佛山社区 | 2009-10-31 at 10:37
看过了,不错的博客,可交换连接不?
[回复]
@佛山社区, 不好意思了,本博已经暂停交换链接了
[回复]
8 - ExtJS | 2009-10-31 at 10:59
学习EXT到ExtJS中文论坛呀.
[回复]
@ExtJS, 贵站域名不错
[回复]
9 - 苦于 | 2009-11-08 at 00:28
@_@
http://09960.com/test.php
没有问题啊··
[回复]
@苦于, 怪了,我放Win主机上有时候可以获取,但是放在我Linux主机就完全不行了,显示Your client does not have permission to get URL /search?rls=ig&hl=zh-CN&source=hp&q=123&aq=f&oq= from this server. (Client IP address: 203.171.239.166)
[回复]
@Gonten, 我的也是Linux的主机啊… 不知道 是不是主机做了什么限制..
Google小偷少的话 改天做个 哈哈
我现在的搜索小偷:
http://09960.com
http://09960.com/baidu
[回复]
@酷鱼, 怪了,我的主机商说没有限制任何函数的,而且我用同样的方法获取百度的完全OK,似乎是Google禁止了我IP?你的115小偷程序很多人都在用哦
[回复]
@Gonten, 估计你的IP被GG禁了…
要不然也没有别的可能你别等程序貌似很正常哈 呵呵
我的115程序搜索的人很多 程序不是很完善. 要COPY点你的了 呵呵
准备弄点别的小偷玩玩。刷下网站的名气.
[回复]
@酷鱼, 我就郁闷,Google为什么要禁止我的IP呢?小偷程序是不错,只是访问量大了,占资源
[回复]
@苦于, 网上很多百度小偷源码,但是好像没见到Google小偷源码
[回复]
10 - kite | 2010-12-06 at 14:46
我也获取不到,本地是动态IP,服务器是固定IP,都被Google禁了?不太可能吧?
[回复]
11 - air compressor | 2011-03-08 at 17:21
@_@ 来加个连接的。
[回复]