<?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,439)
- web (628)
- ปุ่มคัดลอก และ ปุ่มลบ มีปัญหา มันจะไปคัดลอกและลบไม่ตรงแถว (โปรแกรมกรีดยางพารา)
- คอลั่ม paid ไม่อ่านค่าใน local storage
- ทำไม เมื่อปิด browser brave แล้วเปิดใหม่ ข้อมูลใน Local storage หาย ครับ
- เพิ่มคอมม่า v69=comma+preview.html
- ใส่ comma ในตัวเลข
- สรุปฟังก์ชันและประโยชน์พิเศษของโปรแกรมตารางบันทึกข้อมูลลูกค้า
- code v66 vs v66-1 ต่างกันอย่างไร
- ข้อมูล Local storage หายไปเอง
- แก้codeต้องแก้ database ให้ตรงกัน
- hover ในช่อง input ทำให้ input ลอยตัว
- โปรแกรมที่เก็บข้อมูลแบบ local storage มีความปลอดภัยแค่ไหน?
- ฟังก์ชั่น ยืดขยายช่อง Threshold (ขีดจำกัด) ในการขยายตัวนั้นสูงเกินไป
- เมื่อให้ gemini บันทึก จดจำไว้ เมื่อต้องการคุยต่อ เข้ามาแชทนี้ หรือ เปิดแชทไหม ต้องอ้างอิงอย่างไร คุณจึงจำได้ ต่อเนื่อง?
- โปรแกรมของเราใช้ html ไฟล์เดียว ถ้าเราเปลี่ยนนามสกุล เป็น .php การทำงานจะต่างกันไหม? มีประโยชน์ในแง่ไหน ความปลอดภัยเป็นยังไง
- เมื่อคุณเปิดลิงก์ใด ๆ ผ่านแอปพลิเคชันอย่าง LINE, Facebook Messenger, หรือแอปโซเชียลมีเดียอื่น ๆ
- การแปลง font .ttf เป็น .js
- โปรแกรมบันทึกข้อมูล
- Protected: ใส่รหัสก่อนส่งฟอร์มเมล (ไม่ต้องมีฐานข้อมูล)
- port 465 vs 587
- ถ้าถูกแฮกhost รหัสเมล ก็ถูกไปด้วย การทำ stmp เนี่ย