<?php
session_start();
// Get the user's IP address
$user_ip = $_SERVER['REMOTE_ADDR'];
// Get the URL of the current page
$current_url = $_SERVER['REQUEST_URI'];
// Check if the user has a browsing history
if (!isset($_SESSION['browsing_history'])) {
// If not, create a new browsing history array and add the current page to it
$_SESSION['browsing_history'] = array($current_url);
} else {
// If yes, add the current page to the browsing history array
array_push($_SESSION['browsing_history'], $current_url);
}
// Check if the user is suspicious based on their browsing history
$is_suspicious = false;
// Count the number of pages the user has visited
$num_pages_visited = count($_SESSION['browsing_history']);
if ($num_pages_visited > 10) {
// If the user has visited more than 10 pages, mark them as suspicious
$is_suspicious = true;
} else {
// Check if the user has accessed any vulnerable pages
foreach ($_SESSION['browsing_history'] as $page) {
if (strpos($page, 'admin.php') !== false) {
// If the user has accessed an admin page, mark them as suspicious
$is_suspicious = true;
break;
}
}
}
if ($is_suspicious) {
// If the user is suspicious, block them from accessing the website
header('HTTP/1.1 403 Forbidden');
echo 'Access to this website is blocked.';
exit();
}
// Display the rest of the page content
echo 'Welcome to my website!';
?>
เวอไนน์ไอคอร์ส
ประหยัดเวลากว่า 100 เท่า!
เวอไนน์เว็บไซต์⚡️
สร้างเว็บไซต์ ดูแลเว็บไซต์
Categories
- ai (1)
- cat (1)
- computer internet (285)
- food (2)
- med (23)
- Music Movie (31)
- tool (43)
- ฮวงจุ้ย (9)
- Travel (69)
- Uncategorized (1,392)
- web (628)
- สายไฟ L และ N และการเสียบปลั๊กเครื่องใช้ไฟฟ้า
- สาย l กับสาย N สลับกันแต่มีกราวด์และมีเบรกเกอร์ป้องกันไฟดูดปลอดภัยแล้วใช่หรือไม่
- การต่อสายกราวด์ไม่ได้ป้องกันความเสี่ยงต่อไฟรั่วทั้งหมด
- การต่อสาย L กับสาย N สลับกันมีผลเสียอย่างไร
- ความสัมพันธ์ระหว่างสไปรท์โปรตีนกับ mrna วัคซีนโควิด
- The art of saying no
- How Will You Measure Your Life?
- ..🙄
- 30คิดมาก
- Marc Reklau เรื่อง “How to Become a People Magnet”
- 13 เครื่องใช้ไฟฟ้าที่กินไฟมากที่สุด
- หน้าร้อนทำไมเข้าไปแพง
- The millionaire mind
- เลิกคิดมากถ้าอยากสำเร็จ
- Motivation
- เครื่องมือที่สามารถวัดค่ากระแสไฟฟ้าความต่างศักย์ไฟฟ้าคลื่นแม่เหล็กไฟฟ้าสนามแม่เหล็กไฟฟ้าความถี่
- แคลมป์มิเตอร์กับเครื่องมือวัดกระแสไฟฟ้า
- ค้นพบสิ่งมีค่าที่ชื่อว่าตัวเอง
- หูฟัง small talk ไร้สายกับไมโครโฟนไร้สาย
- ความแตกต่างของหม้ออบลมร้อนและหม้อทอดไร้มัน