Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MyIP
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Package Registry
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
sgsax
MyIP
Commits
adbebe5d
Commit
adbebe5d
authored
Nov 10, 2020
by
Seth D. Galitzer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
inital import, edit readme
parent
60a4a645
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
28 additions
and
1 deletion
+28
-1
README.md
README.md
+7
-1
index.php
index.php
+13
-0
myip.css
myip.css
+8
-0
No files found.
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