Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
sgsax
MyIP
Commits
adbebe5d
Commit
adbebe5d
authored
Nov 10, 2020
by
Seth D. Galitzer
Browse files
inital import, edit readme
parent
60a4a645
Changes
3
Hide whitespace changes
Inline
Side-by-side
README.md
View file @
adbebe5d
# 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
index.php
0 → 100644
View file @
adbebe5d
<!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>
myip.css
0 → 100644
View file @
adbebe5d
@import
url('https://fonts.googleapis.com/css?family=Bai+Jamjuree')
;
p
{
font
:
80px
"Bai Jamjuree"
,
arial
,
sans-serif
;
color
:
#512888
;
text-align
:
center
;
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment