Visit our Sponsors
By adding one line of HTML code to your web pages you can now easily access your visitor's IP address and country of origin.

<SCRIPT LANGUAGE="JavaScript" SRC="http://www.searchnc.com/cgi-bin/atlas"></SCRIPT>

The functions available in this script are:

myip_address() returns the client's IP address
myip_country_code() returns the two letter country code of the client's IP
myip_country_name() returns the name of the client's country
myip_flag_url() returns the url of an image of the client country's flag
myip_browser() returns a browser identification string
myip_device() returns device type hosting the script: computer, mobile, phone, console
myip_model() returns the device model if not a computer
myip_OS() returns the name of the operating system of the client


Some JavaScript code examples:

document.writeln("Your IP address is " + myip_address() + "<br>");
document.writeln("That IP is located in " + myip_country_name() + " ");
document.writeln("<img src='" + myip_flag_url() + "' border=0><br>");
document.writeln("You are viewing this web page with a " + myip_device() + " using " + myip_OS() + "<br>");
if (myip_device() == "phone" && myip_model() != "unknown") {
   document.writeln("The model of your phone is " + myip_model() + "<br>");
}

var ip = myip_address();
var ndx = ip.lastIndexOf(".");
var cblock = ip.substr(0, ndx);
if (cblock == "68.16.179") location.href = "http://www.searchnc.com";




myip_browser() returns one of the following:
ResultDescription
unknown  Browser type unknown
IE#.#Internet Explorer and version
FF#.#Firefox and version
OP#.#Opera and version
CH#.#Chrome and version
SF#.#Safari and version
EP#.#Epiphany and version
KO#.#Konqueror and version
LY#.#Lynx and version
RM#.#RockMelt and version


myip_device() returns one of the following:
ResultDescription
unknownUnable to determine
computer  Desktop or laptop
mobileiPad, iPod, PDA, eReader or Tablet
phoneany web enabled phone
consoleGame consoles: Nintendo or PlayStation


myip_model() returns the following and many more:
ResultDescription
unknownUnable to determine
iPadApple iPad
iPodApple iPod
iPhoneApple iPhone
KindleAmazon Kindle
NookBarnes & Noble Nook
Android*Anything running Android that cannot be positively narrowed further
BlackBerry*Any BlackBerry usually followed by the model number
Nintendo WiiNintendo Wii
Nintendo DsNintendo Ds
PlayStationSony PlayStation (2 or earlier)
PS3Sony PlayStation 3
PSPSony PlayStation Portable
Nokia*Any Nokia usually followed by the model number
Sony Ericsson*Any Sony Ericsson usually followed by the model number
Samsung*Any Samsung usually followed by the model number
Micromax*Any Micromax usually followed by the model number
LG*Any LG usually followed by the model number
HTC*Any HTC usually followed by the model number
Pantech*Any Pantech usually followed by the model number
LG*Any LG usually followed by the model number
ZTE*Any ZTE usually followed by the model number
Huawei*Any Huawei usually followed by the model number
(model number w/o Brand)Too many to name





If you are upgrading from the obsolete myip.pl script you will need to either change all references of the JavaScript variable IP to myip_address() or include the following code:
<SCRIPT LANGUAGE="JavaScript">
var IP = myip_address();
</SCRIPT>










This script is for your website only! Any other use (like checking if your IP address has changed so you can update a DNS server) is considered abuse and it will be made to cease functioning on a per site basis. If you need DNS updates for your dynamic IP we will be glad to set it up for you at a mere $10.00 US per month.
















Back to the main page