< ?php

if(strpos($_SERVER["HTTP_USER_AGENT"],"IE")) {

/* IE为标签头关键字,我看了IE11.0的标签头好像没有IE字样,这个要自己找. */

header("Location: https://www.myzhenai.com.cn/");

/* 跳转代码 */

exit;

/* 以免下面的代码继续运行. */

}

?>

< ?php echo $_SERVER["HTTP_USER_AGENT"]; /* 获取浏览器头部信息 */ ?>

a743fd07476f6cc1e0998dfea19cd703.png

PHP判断浏览器类型并跳转源代码

c56554de989c2f25d649a9df77b7548f.png

PHP判断浏览器类型并跳转源代码

sicnature ---------------------------------------------------------------------

Your current IP address is: 115.194.2.58

Your IP address location: 浙江省杭州市电信

Your IP address country and region: 中国

d9840db1de5c066b3143a36b83ba0940.png

Your current browser is:

c55e3eff36f0c380a04e3e5ffee3bbca.png

Your current system is:

mac.png

Original content, please indicate the source:

同福客栈论坛 | 蟒蛇科普 | 海南乡情论坛 | JiaYu Blog

sicnature ---------------------------------------------------------------------

Welcome to reprint. Please indicate the source https://www.myzhenai.com.cn/post/1673.html

Logo

瓜分20万奖金 获得内推名额 丰厚实物奖励 易参与易上手

更多推荐