Creating a php file to fingerprint a user 08-09-2017, 07:54 PM
#1
Hi,
I'm trying to use php to track visitors devices. The idea here is when a user visit the site the php script will try to reverse contact the ip and retrieve any information (example: html, warning messages or whatever the user has on port 80.
I got the almost all done with the code but i just need some help with file_get_contents since it's not retrieving anything even if i point to a file location that exists.
Thanks
I'm trying to use php to track visitors devices. The idea here is when a user visit the site the php script will try to reverse contact the ip and retrieve any information (example: html, warning messages or whatever the user has on port 80.
I got the almost all done with the code but i just need some help with file_get_contents since it's not retrieving anything even if i point to a file location that exists.
PHP Code:
...
$section = file_get_contents('$user_ip');
$ourFileName = "$user_ip";
$ourFileHandle = fopen($ourFileName, 'w') or die("can't open file");
fwrite($ourFileHandle, $section);
fclose($ourFileHandle);
?>
Thanks