Login Register




The stories and information posted here are artistic works of fiction and falsehood. Only a fool would take anything posted here as fact.


Get friend's IP easily and innocently :P filter_list
Author
Message
Get friend's IP easily and innocently :P #1
Just though about making this after playing a round of TF2 with @1llusion

It's simple, just make a game server xD

People will join and you will get a log "Client "1llusion" connected (ha! not gonna tell you the IP ._. but it should be here Biggrin)."

That on Valve servers but any servers you make should do that as well.

Now I wait to see the reactions which I think will mostly be negative because seriously, couldn't get any more basic than this.

But oh well, maybe it will help someone xD

Still think SE was the best place to put this though, because it isn't really a tutorial.
[Image: a8Wp2g3_460sa.gif]

"Offense is not given, it's taken"

Reply

RE: Get friend's IP easily and innocently :P #2

PHP Script for gathering IP Address, Date-Time, and Page viewed.

Quote:

x----------------------------x------------------------------x---------------------------x-------------------------x

<?php
$ip = $_SERVER['REMOTE_ADDR'];
$page = $_SERVER['REQUEST_URI'];
$datetime = date("d-m-y / H:iConfused");
$writedata = $datetime . " - " . $ip . " - " . $page . "<br />";
$fopen = fopen("log.txt", "a");
fwrite($fopen, $writedata);
fclose($fopen);
?>

x----------------------------x------------------------------x---------------------------x-------------------------x

Hope this worked for you ! (Those who need this script) Smile
You can this script to any html page and rename it to .php. this will work fine and create a .TXT file on webserver containing the data collected while processing page.
[Image: cooltext980231940.gif]

Reply