Skip to content

Commit

Permalink
Create visitor.conf
Browse files Browse the repository at this point in the history
  • Loading branch information
ravindrajob authored Jan 10, 2023
1 parent bb9f840 commit bc33983
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions nginx/visitor.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?php
require('UserInfo.php');
// client-ip.php : Demo script by nixCraft <www.cyberciti.biz>
// get an IP address
$ip = $_SERVER['REMOTE_ADDR'];
// display it back
echo "<center><h2>Private access Warning !</h2></center>";
echo "Your IP address : " . $ip;
echo "<br>Your hostname : ". gethostbyaddr($ip) ;
echo "<br>Your OS : ". UserInfo::get_os();
echo "<br>Your browser : ". UserInfo::get_browser();
echo "<br>Your device : ". UserInfo::get_device();
?>

0 comments on commit bc33983

Please sign in to comment.