Sinisterly
Tracking (spying) viewers of my website. ( help ) - Printable Version

+- Sinisterly (https://sinister.ly)
+-- Forum: Design (https://sinister.ly/Forum-Design)
+--- Forum: Web Design (https://sinister.ly/Forum-Web-Design)
+--- Thread: Tracking (spying) viewers of my website. ( help ) (/Thread-Tracking-spying-viewers-of-my-website-help)



Tracking (spying) viewers of my website. ( help ) - Guxi - 12-18-2012

HI [username] I need a lil' help. What is most efficient way of getting all possible data from a viewer of my website. I'd need something that would display me viewer ip,browser,OS... etc, I know there is some services that can do that for you, but do you guys got something more serious?
I should see logs instantly, in real time.

Would be amazing if anyone could help me to setup this.

Thanks in advance


Tracking (spying) viewers of my website. ( help ) - Guxi - 12-18-2012

HI [username] I need a lil' help. What is most efficient way of getting all possible data from a viewer of my website. I'd need something that would display me viewer ip,browser,OS... etc, I know there is some services that can do that for you, but do you guys got something more serious?
I should see logs instantly, in real time.

Would be amazing if anyone could help me to setup this.

Thanks in advance


RE: Tracking (spying) viewers of my website. ( help ) - The Alchemist - 12-24-2012

Ok. So, I'm providing you with a PHP code. Include this code in your index page of your website. Anyone who surfs the index page of your website will be spied. And all the details will be stored in a file called "logs.txt"

Here's the script :
PHP Code:
<?php $handler=fopen("logs.txt","a"); fwrite($handler, "Time : ".date("Y-m-d H:i:s")."\n"); foreach($_SERVER as $key => $value) { fwrite($handler, "$key = $value \n"); } fclose($handler); ?>

Hope this helps.


RE: Tracking (spying) viewers of my website. ( help ) - Guxi - 12-24-2012

(12-24-2012, 07:59 AM)The Alchemist Wrote: Ok. So, I'm providing you with a PHP code. Include this code in your index page of your website. Anyone who surfs the index page of your website will be spied. And all the details will be stored in a file called "logs.txt"

Here's the script :
PHP Code:
<?php $handler=fopen("logs.txt","a"); fwrite($handler, "Time : ".date("Y-m-d H:i:s")."\n"); foreach($_SERVER as $key => $value) { fwrite($handler, "$key = $value \n"); } fclose($handler); ?>

Hope this helps.

You served it on the plate. rep+
ty