View previous topic :: View next topic |
Author |
Message |
OSIRIS Grandmaster Cheater
Reputation: 0
Joined: 27 Aug 2006 Posts: 654
|
Posted: Wed Aug 20, 2008 1:06 pm Post subject: IP stealing via website. |
|
|
I made a little website. And I want a script to steal to steal IP's of all user that visit.
Last edited by OSIRIS on Wed Aug 20, 2008 11:13 pm; edited 2 times in total |
|
Back to top |
|
 |
pkyourface Master Cheater
Reputation: 0
Joined: 26 Dec 2006 Posts: 252
|
Posted: Wed Aug 20, 2008 1:22 pm Post subject: |
|
|
Just wonder what does stealing IP's do for you?
EDIT: Stupid spelling errors.
|
|
Back to top |
|
 |
OSIRIS Grandmaster Cheater
Reputation: 0
Joined: 27 Aug 2006 Posts: 654
|
Posted: Wed Aug 20, 2008 1:36 pm Post subject: |
|
|
Im going to advertise my website on my Facebook page. And I would want to know to which of them has viewed my website.
And its also just a good thing to know, in case I ever got h4x0rd.
|
|
Back to top |
|
 |
pkyourface Master Cheater
Reputation: 0
Joined: 26 Dec 2006 Posts: 252
|
Posted: Wed Aug 20, 2008 1:39 pm Post subject: |
|
|
Can't you just check the server log files?
|
|
Back to top |
|
 |
OSIRIS Grandmaster Cheater
Reputation: 0
Joined: 27 Aug 2006 Posts: 654
|
Posted: Wed Aug 20, 2008 1:41 pm Post subject: |
|
|
Im just using a free webhost.
www.freehostia.com
all I got is my index.html
and my logs.txt.
My logs.txt is where I want the IPs to go.
|
|
Back to top |
|
 |
pkyourface Master Cheater
Reputation: 0
Joined: 26 Dec 2006 Posts: 252
|
Posted: Wed Aug 20, 2008 1:54 pm Post subject: |
|
|
Sorry I took so long I had to make an account on there and test it out. First of all make a file call logging.php and put this code in there:
Code: |
<?php
$curFile = $_SERVER['PHP_SELF']; // what file is being accessed
$ip = $REMOTE_ADDR; // visitors IP
// writing to log file
$filename = 'log.txt';
$fp = fopen($filename, "a"); // appending to the end
$today = date ("F j, Y, g:i a");
$toFile = "$ip -- $today -- $curFile\r\n";
$write = fputs($fp, $toFile);
fclose($fp);
?>
|
Then create another file called log.txt and whenever a user visits the page it will show up as 70.52.161.21 -- August 20, 2008, 7:50 pm -- /logging.php
|
|
Back to top |
|
 |
OSIRIS Grandmaster Cheater
Reputation: 0
Joined: 27 Aug 2006 Posts: 654
|
Posted: Wed Aug 20, 2008 1:57 pm Post subject: |
|
|
thanks, +rep
but how would I change the Time it sets. It think this is it
("F j, Y, g:i a")
but what if I wanted EST time? How would I modify that?
|
|
Back to top |
|
 |
pkyourface Master Cheater
Reputation: 0
Joined: 26 Dec 2006 Posts: 252
|
Posted: Wed Aug 20, 2008 3:26 pm Post subject: |
|
|
Right above $today put : Code: | putenv("TZ=Your Timezone Here"); |
To find out what to put after TZ= go here and find your timezone: http://ca.php.net/timezones
|
|
Back to top |
|
 |
OSIRIS Grandmaster Cheater
Reputation: 0
Joined: 27 Aug 2006 Posts: 654
|
Posted: Wed Aug 20, 2008 3:33 pm Post subject: |
|
|
thanks allot
|
|
Back to top |
|
 |
Tofu Grandmaster Cheater
Reputation: 0
Joined: 25 Sep 2007 Posts: 620
|
Posted: Wed Aug 20, 2008 9:46 pm Post subject: |
|
|
AY! Thanks. Going to use this on my website too!
_________________
|
|
Back to top |
|
 |
OSIRIS Grandmaster Cheater
Reputation: 0
Joined: 27 Aug 2006 Posts: 654
|
Posted: Wed Aug 20, 2008 11:14 pm Post subject: |
|
|
It works perfectly. Although you dont need to put that file in logging.php , I put mine on my home page.
|
|
Back to top |
|
 |
|