Showing posts with label Programming. Show all posts
Showing posts with label Programming. Show all posts

Tuesday, September 29, 2009

Geographical mapping to IP address

In order to map the IP address to a geographical representation, the system needs the geographical data mapping. This data is provided by several companies. One can use the GEOLiteCity data, which is free. To obtain this data, visit http://www.maxmind.com/app/geolitecity and download the ZIP file which contains two files, Blocks and Location CSV. The block file maps an IP number range to a location. The location file has the geographical information. Please note that there are frequent updates to these files, so make sure you read the description of their services.

Thursday, July 10, 2008

Microsoft Collaboration Data Objects (CDO)

For the programmers (VB / ASP / any MS platform) who are using Microsoft Collaboration Data Objects (CDO) for sending mail messages or coding mail client interface, getting stuck into object reference is common problem. CDOLive.com provides a good knowledge base for the situation, with a comprehensive code base.

Try out http://www.cdolive.com.

Thursday, April 17, 2008

Getting IP address of client browser

Recording IP address of client browser is necessity from security point of view. It helps in filtering unwanted or malicious access from a particular location.

Active Server Pages (Microsoft's ASP) has a built-in object called ServerVariables. This object holds useful information on Environmental Variables of the client browser. One the variable is "REMOTE_ADDR" which holds the IP address of the visitor.

To request the IP address of host machine, use the following code in the ASP page:

Client IP is <%= Request.ServerVariables("REMOTE_ADDR") %>



Subscribe free via email

Enter your email address:

Delivered by FeedBurner

...