Saket Jajodia

Tecko Blog..!!

Follow me on Twitter @

How To Show Your Visitors Their Location And IP Address On Your Blog Or Website

Have you noticed that I have some information about you, got surprised?

Don’t be it is not hard to do so. It is done with the little help of JavaScript and also with the help IP2Phrase which is powered by IP2Location.

If you also want to surprise your visitors simply add the below code into your blog or website. if you want to show your custom message then just change the content between template= and “></script>.

<script language="Javascript" src="http://www.ip2phrase.com/ip2phrase.asp?template=Thank you for visiting this website from <CITY>, <REGION>, <COUNTRYSHORT> using <ISP>'s ISP, your current IP Address is <IP> and I know this <FLAG> is your country flag."></script>

And place keywords to show visitors information in your custom message, as I have used in above code.

KeywordDefinition
<IP>
IP address of visitor
<COUNTRY>
Full country name of visitor
<COUNTRYSHORT>
2-digit country name of visitor
<REGION>
State or region of visitor
<CITY>
City of visitor
<ISP>
Internet service provider (ISP) of visitor
<FLAG>
Flag of country

In case if you don’t want to text then you can also show it in two different size of image and iframe format.

200×160 square image

<a target="_blank" href="http://jajodia-saket.sjbn.co/?p=5471"><img src="http://tools.ip2location.com/ip2location.png" border="0" width="400" height="80" /></a>

400×80 horizontal image

<a target="_blank" href="http://jajodia-saket.sjbn.co/?p=5471"><img src="http://tools.ip2location.com/ip2locationbig.png" border="0" width="200" height="160" /></a>

200×160 square iframe

<iframe src="http://tools.ip2location.com/ib2" width="204" height="162" marginwidth="1" scrolling="no" frameborder="0"></iframe>

400×80 horizontal iframe

<iframe src="http://tools.ip2location.com/ib1" width="404" height="86" marginwidth="1" scrolling="no" frameborder="0"></iframe>

Reply

Please use your original name while commenting, Thank you..!!








Designed by Blogger Templates and Blog and Web