Commit adbebe5d authored by Seth D. Galitzer's avatar Seth D. Galitzer

inital import, edit readme

parent 60a4a645
# MyIP
Simple page to display remote user's IP and hostname.
\ No newline at end of file
Simple page to display remote user's IP and hostname
Includes css so you can customize your font face and color if you like that kindof thing
## Caveats
- only good for local subnet, doesn't handle NAT or proxy
- must have reverse DNS enabled for your IPs
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<title>My IP</title>
<link rel="stylesheet" type="text/css" href="myip.css" />
</head>
<body>
<p>Your IP address is:<br><?php print $_SERVER['REMOTE_ADDR'] ?></p>
<p>Your hostname is:<br><?php print gethostbyaddr($_SERVER['REMOTE_ADDR']) ?><p>
</body>
</html>
@import url('https://fonts.googleapis.com/css?family=Bai+Jamjuree');
p {
font: 80px "Bai Jamjuree",arial,sans-serif;
color: #512888;
text-align: center;
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment