I need Domaintools and ip2location script

Status
Not open for further replies.
4 comments
This is not hard if you got Linux.

To get your Public IP:
wget -qO- http://ipecho.net/plain ; echo

To get webserver's IP:
host domain.com

To get WHOIS of an IP (replace localhost example with an actual IP):
whois 127.0.0.1

To geolocate an IP (replace localhost example with an actual IP):
geoiplookup 127.0.0.1

The tricky part though is when web sites hide behind reverse proxy caching via Nginx, Varnish, etc (most commonly CloudFlare). However, there are ways to figure this out to find the originating IP which at this time I won't be divulging :)
 
Status
Not open for further replies.
Back
Top