
PHP Browser Information
Example
3.238.70.175CCBot/2.0 (https://commoncrawl.org/faq/)
https's default port number is: 443
Script Source
<?php
echo $_SERVER['REMOTE_ADDR']; // gets the ip address
echo "<br/>";
echo $_SERVER['HTTP_USER_AGENT'] . "\n\n"; // displays your browser information
echo "<br/>";
echo $_SERVER['HTTP_REFERER'] . "\n\n"; // gives you information on where you came from
echo "<br/>";
echo "https's default port number is: ".getservbyname("https", "tcp"); // displays your default port number
echo "<br/>";
?>
Please let me know if this script was helpful to you.
[rating]