Filehost.ro - gazduire fisiere
WeLcoMe GenIuS
GenIus.3xforum.ro Rapidshare Forum , Rapidshare Free Download , Rapidshare Movies , Rapidshare Games , Rapidshare Applications, tutoriale hack, filme noi 2009, jocuri free, jocuri full, programe free, yahoo password, yahoo flood, ddos kill, poze, wallpere, invitati torent, filme gratis, filme noi, seriale, seriale noi, videoclipuri, muzica free, manele, hip-hop, rock, totul free.
Nou pe simpatie:
Stefania23 pe Simpatie
Femeie
24 ani
Dolj
cauta Barbat
25 - 46 ani
WeLcoMe GenIuSInregistrareLoginPozeNu sunteti logat. Lista Forumurilor Pe Tematici
WeLcoMe GenIuS / Tutoriale PHP /

[PHP] Spioneaza site-ul

Pagini: 1 Moderat de g3org3
#1
A!3x
Administrator
Din: Iasi
Postari: 199
In acest tutorial veti invata cum sa aflati unele date de la vizitatorii site-ului dumneavoastra:
Pentru inceput va voi prezenta niste variabile de tip standard:

HOSTNAME - modul in care server-ul face referinta la sine insusi
OSTYPE - sistemul de operare pe care-l foloseste server-ul
HTTP_USER_AGENT - Specifica browser-ul si platforma utilizata de vizitator
DOCUMENT_ROOT - Indica unde sunt afisate fisierele si directoarele in server
etc...

Code:

<html>
<head>
<title>Spy on yor site code by Alpha Thema </title>
</head>
<table border="5" bg color="white">
<tr>
<td><center>
<body>
<?php



$spy = fopen("spy.html" , "a";
$site = $HTTP_REFERER;
$ip = $REMOTE_ADDR;
$browser = $HTTP_USER_AGENT;
$time = date("H:i dS F";

echo "The site you came from: " . $_SERVER["HTTP_REFERER"] . "<br />";
echo "ALL IP ADRESSES, TIME, SITE AND YOUR BROWSERS ARE BEING CAPTURED!";

fwrite($spy,"<<<<<------------BEGIN------------>>>>><br />";
fwrite($spy,"Site you came from: $site <br />";
fwrite($spy,"IP Address: $ip <br />";
fwrite($spy,"Browser: $browser <br />";
fwrite($spy,"Time: $time <br />";
fwrite($spy,"<<<<<------------END------------>>>>><br />";

fclose($spy);
?>

</table>
</center></td>
</tr>
</table border>
</body>

Salveaza fisierul cu numele spy.php si creaza un alt fisier de tip dext numit spy.html si scrie in el :

Code:

<html>
<head>
<title>Spy on your site by Alpha Thema
<head>
<body>

Salveaza-l ...

Acum deschide fisierul index.html  si scrie intre etichetele <body> urmatorul cod:

Code:

<script src='Link-ul catre fisierul spy.php'></script>



_______________________________________
Pe ToN RR-iT :P

 
   
Pagini: 1  
Mergi la