More Script Sir?

 
Post new topic   Reply to topic    Aprelium Forum Index -> General Questions
View previous topic :: View next topic  
Author Message
Arctic
-


Joined: 24 Sep 2004
Posts: 560

PostPosted: Tue Jan 04, 2005 4:20 am    Post subject: More Script Sir? Reply with quote

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 View user's profile Send private message ICQ Number
Glitch2082
-


Joined: 02 Dec 2004
Posts: 194

PostPosted: Tue Jan 04, 2005 4:55 am    Post subject: Reply with quote

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 View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> General Questions All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB phpBB Group