Login Register






Logging ips on a website filter_list
Author
Message
Logging ips on a website #1
Is there a script of function that i can add to my site that will log the IP address of anyone who lands on that site.

I am a admin of a forum on proboards. The old version of proboards had a feature that did this automatically so you could look it over later and see who was looking at your forum. They just upgraded to version 5 and now you can only see the ips of those on at the time you look. Is there a way i can add this for her???

Reply

Logging ips on a website #2
Is there a script of function that i can add to my site that will log the IP address of anyone who lands on that site.

I am a admin of a forum on proboards. The old version of proboards had a feature that did this automatically so you could look it over later and see who was looking at your forum. They just upgraded to version 5 and now you can only see the ips of those on at the time you look. Is there a way i can add this for her???

Reply

RE: Logging ips on a website #3
Do you have access to the server too?

Reply

RE: Logging ips on a website #4
Do you have access to the server too?

Reply

RE: Logging ips on a website #5
(07-11-2013, 01:20 AM)belgarrion Wrote: Is there a script of function that i can add to my site that will log the IP address of anyone who lands on that site.
Just add this to your index.php :
PHP Code:
<?php $handler = fopen("iplog.txt","a"); fwriite($handler,$_SERVER['REMOTE_ADDR']."\n"); fclose($handler); ?>
Whoever visits your website's index.php, that person's IP address gets stored in a TXT file named iplogs.txt in the same folder. You may add the code for other files too.
[Image: 2YpkRjy.png]
PM me if you need help.
My pastebin HERE. My URL Shortener HERE.

Reply

RE: Logging ips on a website #6
(07-11-2013, 01:20 AM)belgarrion Wrote: Is there a script of function that i can add to my site that will log the IP address of anyone who lands on that site.
Just add this to your index.php :
PHP Code:
<?php $handler = fopen("iplog.txt","a"); fwriite($handler,$_SERVER['REMOTE_ADDR']."\n"); fclose($handler); ?>
Whoever visits your website's index.php, that person's IP address gets stored in a TXT file named iplogs.txt in the same folder. You may add the code for other files too.
[Image: 2YpkRjy.png]
PM me if you need help.
My pastebin HERE. My URL Shortener HERE.

Reply

RE: Logging ips on a website #7
Thanks for the help. However i do not have access to the folder to access the txt file. Is there a way to have it email to someone every 12 hours or .... i need a easy way to access it for her. a link i can add something simple for her.

Reply

RE: Logging ips on a website #8
Thanks for the help. However i do not have access to the folder to access the txt file. Is there a way to have it email to someone every 12 hours or .... i need a easy way to access it for her. a link i can add something simple for her.

Reply