View previous topic :: View next topic |
Author |
Message |
Arctic -
Joined: 24 Sep 2004 Posts: 560
|
Posted: Tue Jan 04, 2005 4:20 am Post subject: More Script Sir? |
|
|
I need to know if there is a script that I can send someone to and it records their IP. Would that be illegal, because someone has been vandalising my site, and I have a way to match their IP address, I just need a way to find what it is. Any script suggestions? Oh, and I may be testing that anti-hacking feature on this vandal soon, he doesn't really "vandalise", he just goes onto anywhere he can, and writes bad stuff about me. |
|
Back to top |
|
|
Glitch2082 -
Joined: 02 Dec 2004 Posts: 194
|
Posted: Tue Jan 04, 2005 4:55 am Post subject: |
|
|
If you have php put this in the main index file or file that he views... make sure you make a file called ips.php too.
Code: |
<?php
$ip=$_SERVER['REMOTE_ADDR'];
$fp = fopen("ips.php","a+");
fwrite($fp,$ip);
fclose($fp);
?>
|
That should record the ip in ips.php, just place the code in the main index or all pages to get ALL ip's. _________________ int main() {
cout << "Im Pro Apache";
cin.get();
} |
|
Back to top |
|
|
|