Jump to content
nesuxro

se poate vede ip pe un server??

Recommended Posts

cind se conecteaza cineva pe situ meu ai poate arata ip si locatia???java sau php??ms..


<!-- Start ip2location.com Link --><IFRAME SRC="http://tools.ip2location.com/ib2/" WIDTH="204" HEIGHT="162" MARGINWIDTH="1" SCROLLING="no" FRAMEBORDER="0"></IFRAME><!-- End ip2location.com Link -->

Link to comment
Share on other sites


<?php

date_default_timezone_set('Europe/Bucharest');

$ip = $_SERVER['REMOTE_ADDR'];
$today = date("F j, Y, g:i a");
$fopen = fopen('date.txt', 'a');
fwrite($fopen, $ip." @ ".$today."\n");
fclose($fopen);

?>

Pune codu asta pe pagina ta si creeaza-ti un fisier date.txt . La fiecare accesare a pagini iti va aparea ip-ul acolo data si ora.

LE : A tu vrei locatia direct, era facut un cod de cineva si iti dadea si locatia, cauta prin forum.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...