| 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:
myip_device() returns one of the following:
myip_model() returns the following and many more:
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. |