From:http://www.officeba.com.cn/zhuanti/htmldata/detail/2008/8/10/448.html
Google 安全瀏覽 API:http://code.google.com/intl/zh-CN/apis/safebrowsing/
在使用Google進行搜尋的時候,有時會看到Google將部分搜尋結果標記為危險,因為有些網站可能包含惡意代碼或病毒,有可能會危害使用者電腦
安全。這是個很貼心的功能。那我們是否可以單獨使用它?答案是肯定的,因為Google最近發布了一個安全瀏覽診斷工具,允許我們單獨對某個網站進行安全
檢查。
這個安全瀏覽診斷工具實際就是Google的一個網頁連結,只要把檢查的網站網域名稱寫在連結最後即可,比如在瀏覽器地址欄輸入:
http://www.google.com/safebrowsing/diagnostic?site=www.cpcfan.com
,就是檢測一下該網站是否安全。
斷行符號後Google會詳細列出網站的檢測結果,包括網站是否已被列為安全懷疑對象、Google以往對該網站的測試結果、網站是否擔當了惡意軟體的傳播媒
介及網站自身是否提供惡意軟體等。由於是英文網頁,大家可以注意第一個問題的答案,“This site is not listed as
suspicious.”,這段話的意思是:該網站不在可疑網站列表中。從檢測的結果來看,該網站可以放心訪問。
如果Google發現網站有問題,它會給出直接的結果,告訴你網站已被列為懷疑對象。第一個問題的答案會是“Site is listed as
suspicious-visiting this web site may harm your
computer”,意思是:該網站在可疑列表中,訪問它可能會危害你的電腦。如果在Google搜尋結果裡出現這個網站,就會看到它被標上“該網站可能
含有惡意軟體,有可能會危害您的電腦”的提示.
寫個html,方便使用:
<html><br /><head><br /><title>Google Safe Browsing API</title><br /></head><br /><mce:script type="text/javascript"><!--<br />var GoogleSafe="http://www.google.com/safebrowsing/diagnostic?site=";<br />// --></mce:script><br /><body><br /><div style="height: 32px; margin: 4px 0pt; text-align:center" class="ds"><br /><input style="background: none repeat scroll 0% 0% rgb(255, 255, 255); border-width: 1px; border-style: solid; border-color: rgb(204, 204, 204) rgb(153, 153, 153) rgb(153, 153, 153) rgb(204, 204, 204); color: rgb(0, 0, 0); font: 18px arial,sans-serif bold; height: 25px; margin: 0pt; padding: 5px 8px 0pt 6px; vertical-align: top;" type="text" size="57" value="" title="Google 搜尋" class="lst" id="url" maxlength="2048" autocomplete="off"></p><p><input type="submit" value="Google it" onclick="document.getElementById('iframe').src=GoogleSafe+document.getElementById('url').value;"><br /></div><br /><iframe id="iframe" style="text-align:center" mce_style="text-align:center" width=100% height=100% src="http://www.google.com/safebrowsing/diagnostic?site=google.com" mce_src="http://www.google.com/safebrowsing/diagnostic?site=google.com"></iframe><br /></body><br /></html>