>深海 2012/05/24 (木) 23:49:16        [qwerty]
>  ( )
> ( 'x')ノ これがすごい屁の人です。
>     KDDI-FJ31 UP.Browser/6.2_7.2.7.1.K.8.160 (GUI) MMP/2.0
>     機種とか分かる?
>     皆さんが迷惑なら、インデックスは応援したいけど、UAで制限とか考えます。

<?
 1|$ua = $_SERVER["HTTP_USER_AGENT"];
 2|if(ereg("DoCoMo",$ua)){           
 3|  header("Location: http://example.com/i.php");
 4|  exit;
 5|}elseif(ereg("J-PHONE",$ua)){     
 6|   header("Location: http://example.com/j.php");
 7|   exit;
 8|}elseif(ereg("UP\.Browser",$ua)){ 
 9|  header("Location: http://example.com/ez.php");
10|  exit;
11|}elseif(ereg("PDXGW",$ua)){       
12|  header("Location: http://example.com/h.php");
13|  exit;
14|}else{ 
15|  header("Location: index.php");
16|  exit;
17|}?>

(^Д^)

参考:2012/05/24(木)23時47分27秒