Πως να βρειτε την ip του φίλου σας με PHP

View previous topic View next topic Go down

Πως να βρειτε την ip του φίλου σας με PHP

Post by SaiD on 21/11/2010, 12:42

Zigoura oli exete skeyti oti gia na kanete kapoio astio kolpaki se enan filo mas apetite kai merikes fores h IP tou. Etsi ti kanoume arxizoume na ton parakalame na mpei se kanena msn kanena ksype h' opoiodipote alo chat room gia na brite ayti ti periboiti IP. Kala mexri edw, alla eno pate na brite tin IP tou pate kai parete tin IP katalathos apo ton server poy xrisimopoiite gia ti sinomilia... tsifos to olo thema... Gia fantastite na min exei kan logariasmo se kapoia apo aytes tis ipiresies......

Giayto epidi idame kai apodame tha sas dikso enan tropo gia na briskoume tin IP xoris mpelades kai irema.

Arxika pame kai anigoume ena txt "Simiomatario" kai kanoume epikolisi ton parakato kodika, to sozoyme me oti onoma theloume alla me kataliksi php (p.x. fountip.php).

$ip = $_SERVER['REMOTE_ADDR'];
$dt = date(“l dS \of F Y h:i:s A”);
$file=fopen(“ip_log.txt”,”a”);
$data = $ip.’ ‘.$dt.”\n”;
fwrite($file, $data);
fclose($file);
header( ‘Location: [You must be registered and logged in to see this link.] ) ;
?>

Meta dimiourgoume ena akoma txt "Simiomatario" me onoma ip_log kai to apothikeboume kanonika, dhmadi me kataliksi txt.
PROSOXI An theloume na alaksoume to onoma kai tou deyterou arxeiou den prepei na ksexasoume na to alaksoume kai apo ton kwdika mas. Dhladh ekei pou leei $file=fopen(“ip_log.txt”,”a”); emeis tha to kanoume $file=fopen(“OTI 8ELIS”,”a”);

To deytero arxio o kanoyme giana kratisi tin IP Wink

Telos ta anebazoume se kapoio hosting kai ta 2 arxeia pou dimiourgisame kai dinoume dikeomata 777 sto deytero arxeio mas.
PROSOXI tha proseksoume na ipostirizei kwdikopoiisi php o hosting pou tha ta anebasoume. Alios den tha doulepsi.

Twra to mono pou exoume na kanoume einai na dosoume to url poy mas odhgei sto fountip.php sto filo mas.
Molis mpei tha katagrafoi h IP toy kai h wra poy mpike. kai gia na min katalabei tipota to exoume kanei etsi pou tha ton petaksi sto google. gr.
Ean theloume na alaksoume dieythinsi gia to poy tha meaferi to filo mas mporoume na to alaksoume apo edw
header( ‘Location: [You must be registered and logged in to see this link.] ) ; ,dhladi tha sbisoume to [You must be registered and logged in to see this link.] kai na to kanoume.... oti emeis theloume.

Kali diaskedasi!
avatar
SaiD

Male
Number of messages : 244
Age : 26
Place : Florida
Hobbies : Na_Pedebome_Me_Kodikous
Humor : Spanio_Kai_Eklekto
Reputation : 15
Points : 292
Registration date : 2010-01-30

View user profile

Back to top Go down

Re: Πως να βρειτε την ip του φίλου σας με PHP

Post by Επισκέπτ on 21/11/2010, 15:31

nice an kai iparxei pio eykolos tropos pou ginete me ena link mono :)anyway

Επισκέπτ
Guest


Back to top Go down

Re: Πως να βρειτε την ip του φίλου σας με PHP

Post by SaiD on 22/11/2010, 19:44

Razz kai emeis xirokinita to kanoume me ena link Wink
avatar
SaiD

Male
Number of messages : 244
Age : 26
Place : Florida
Hobbies : Na_Pedebome_Me_Kodikous
Humor : Spanio_Kai_Eklekto
Reputation : 15
Points : 292
Registration date : 2010-01-30

View user profile

Back to top Go down

View previous topic View next topic Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum