IP log tutmak [PHP] (1 Viewer)

Merhaba spy ailesi, bugun site kucuk basit bir kod ile ip log tutmasini gostercegim index.php kodlarimiz <?php $ip = $_SERVER['REMOTE_ADDR']; if ( !file_exists("ip.txt"))...

Merhaba spy ailesi,

bugun site kucuk basit bir kod ile ip log tutmasini gostercegim

qPzlZd.jpg

index.php kodlarimiz
PHP:
<?php
$ip = $_SERVER['REMOTE_ADDR'];
if ( !file_exists("ip.txt")) {
touch("ip.txt");
$file = @fopen("ip.txt", "+r");
@fclose($file);

} else {
$file = @fopen("ip.txt", "a");
$text = "-----------------------------". "\r\n" . "Tarih : " . date('d/m/Y - H:i') . "\r\n" . "IP Adresi :" . "\r\n" . $ip . "\r\n". "-----------------------------" . "\r\n";
@fwrite($file, $text);
@fclose($file);
}

?>


bos bir ip.txt hazirlayip ftp den chmod 777 veriyoruz (yazma iznidir 777 komutu)

92j5PN.jpg


Gördugunuz gibi ip'ler loglaniyor

saygilar
 
Yanıt yazmak için giriş yapmalısınız
Forum özelliklerini kullanmak ve Level 2 üyelik satın almak için hesabınıza giriş yapın.

Users who are viewing this thread

133,377Konular
3,281,029Mesajlar
320,640Kullanıcılar
aselkaya47Son Üye
Üst Alt