[trick] Membuat History Web dengan PHP

Bismillah.

Trik Kali Ini Membuat History website kita dengan menggunakan PHP >

langsung saja >

<?php
$agent = $_SERVER['HTTP_USER_AGENT'];
$uri = $_SERVER['REQUEST_URI'];
$ip = $_SERVER['REMOTE_ADDR'];
$ref = $_SERVER['HTTP_REFERER'];
$asli = $_SERVER['HTTP_X_FORWARDED_FOR'];
$via = $_SERVER['HTTP_VIA'];
$dtime = date('r');
$nama = $_SESSION['nama'];
$pass = $_SESSION['password'];
$entry_line = "Waktu: $dtime | IP asli: $ip | Browser: $agent | URL: $uri | Referrer: $ref | Proxy:
$asli | Koneksi: $via | nama : $nama | Pass : $pass
";
$fp = fopen("jejak.txt", "a");
fputs($fp, $entry_line);
fclose($fp);

?>
Leave a comment

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: