<?php
/**
* 類名: mobile
* 描述: 手機資訊類
* 其他: 偶然 編寫
* 函式名稱: gethttpheader
* 函式功能: 取頭資訊
* 輸入引數: none
* 函式返回值: 成功返回號碼,失敗返回false
* 其它說明: 說明
* 函式名稱: getua
* 函式功能: 取ua
* 輸入引數: none
* 函式返回值: 成功返回號碼,失敗返回false
* 其它說明: 說明
*/ function getua()else
} /**
* 函式名稱: getphonetype
* 函式功能: 取得手機型別
* 輸入引數: none
* 函式返回值: 成功返回string,失敗返回false
* 其它說明: 說明
*/ function getphonetype()else
} /**
* 函式名稱: isopera
* 函式功能: 判斷是否是opera
* 輸入引數: none
* 函式返回值: 成功返回string,失敗返回false
* 其它說明: 說明
*/ function isopera()else
} /**
* 函式名稱: ism3gate
* 函式功能: 判斷是否是m3gate
* 輸入引數: none
* 函式返回值: 成功返回string,失敗返回false
* 其它說明: 說明
*/ function ism3gate()else
} /**
* 函式名稱: gethttpaccept
* 函式功能: 取得ha
* 輸入引數: none
* 函式返回值: 成功返回string,失敗返回false
* 其它說明: 說明
* 函式名稱: getip
* 函式功能: 取得手機ip
* 輸入引數: none
* 函式返回值: 成功返回string
* 其它說明: 說明
*/ function getip()
return $ip;
} }
?>
JS獲取瀏覽器資訊
本機執行結果 瀏覽器 microsoft internet explorer 瀏覽器版本 4.0 compatible msie 6.0 windows nt 5.1 sv1 qqdownload 1.7 infopath.2 net clr 2.0.50727 net clr 3.0.04506....
js瀏覽器資訊獲取
namespace com.uk.silence.window class geometry version 1.0 var namespace module.createnamespace com.uk.silence.window 1.0 namespace.geometry function ...
獲取瀏覽器資訊的類
如果不需要querystring,截掉 當前訪問者是否為蜘蛛程式 注 可通過手動更改瀏覽器user agent設定或者url後附加isrobot 1引數來偽造當前請求為蜘蛛程式 public static bool isrobot return isrobot public static strin...