Skip to content
serbanpaunPublic

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

14 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Your IP Address

Script to show user's IP Address and other public details which the browser sends.

Prerequisites

# apt install composer
# cd /path/to/your/website/directory/

Download GeoLite2-Country.mmdb from https://www.maxmind.com/ (you need an account).

# curl -sS https://getcomposer.org/installer | php
# php composer.phar require geoip2/geoip2

Install this package: geoipupdate on your server.

Published details

IP Address

Your publicly visible IP Address

Proxy (only if detected)

Will show a warning if you are behind a proxy

Browser

Full browser signature

Remote Port

The port used for current connection

Country

Best guess country (via GeoIP database)

Window Resolution

Oh, well... This is actually the worst part, because there is no real method of detecting the actual display resolution, so we try to guess it using the browser's data.

Screen (Browser) Resolution

The actual browser window size.

Pixel Ratio

Just a horrible thing which is (probably) never accurate, especially on mobile devices.

See this in action at https://ip.ptm.ro/.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages