VanGans

IP Logger

Apr 14th, 2019
214
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.25 KB | None | 0 0
  1. <?php
  2.  
  3.     $ip = $_SERVER['REMOTE_ADDR'];
  4.     $useragent = $_SERVER['HTTP_USER_AGENT'];
  5.     // Nama File
  6.     $result = fopen('result.txt', 'a');
  7.     // Isi File
  8.     $isi = "
  9.     IP : $ip
  10.     User Agent : $useragent
  11.     ";
  12.     fwrite($result, $isi);
  13.     fclose($result);
  14.  ?>
Add Comment
Please, Sign In to add comment