retrieve information about the computer

PHOTO EMBED

Fri Mar 10 2023 12:25:21 GMT+0000 (Coordinated Universal Time)

Saved by @kalehm #javascript #php

<?php
$ip = $_SERVER['REMOTE_ADDR'];
$user_agent = $_SERVER['HTTP_USER_AGENT'];
$referer = $_SERVER['HTTP_REFERER'];
$language = $_SERVER['HTTP_ACCEPT_LANGUAGE'];

echo "IP address: $ip<br>";
echo "User agent: $user_agent<br>";
echo "Referrer: $referer<br>";
echo "Preferred language(s): $language<br>";
?>
content_copyCOPY

$_SERVER['REMOTE_ADDR']: This returns the IP address of the client that is accessing the web page. $_SERVER['HTTP_USER_AGENT']: This returns the user agent string, which contains information about the client's browser and operating system. $_SERVER['HTTP_REFERER']: This returns the URL of the page that referred the client to the current page (if any). $_SERVER['HTTP_ACCEPT_LANGUAGE']: This returns the preferred language(s) of the client, as specified in the Accept-Language header of the HTTP request.