Maksazone.com  

Go Back   Maksazone.com > Knowledge > Computer Affairs

Computer Affairs Share ur tips and tricks of computer and computer related questions and answers.

Sponsored Links
Reply
 
LinkBack Thread Tools Display Modes
Old 13th October 2007, 06:04 PM   #1 (permalink)
Super Moderator
 
shadenights's Avatar
 
Join Date: Oct 2007
Location: me
Posts: 5,543
shadenights has a reputation beyond reputeshadenights has a reputation beyond reputeshadenights has a reputation beyond reputeshadenights has a reputation beyond reputeshadenights has a reputation beyond reputeshadenights has a reputation beyond reputeshadenights has a reputation beyond reputeshadenights has a reputation beyond reputeshadenights has a reputation beyond reputeshadenights has a reputation beyond reputeshadenights has a reputation beyond repute
Default Find visitor locations from IP location address....

Using some very simple maths and a IP-based geo-location reference table, you can find the exact physical location of you website visitors. This technique can be extended to retrieve visitor's IP address using ASP, PHP, JSP, Perl or ColdFusion

The first step is to convert the visitor's IP address to an IP Number. Then we can search the IP-Country-Region-City database using IP number to match a record that has the IP Number between Beginning IP Number and Ending IP Number. Then, we can search the free IP-to-Country Database to match a unique record that has the IP number fits between From IP Number and To IP Number.

An IP Address is generally of the form w.x.y.z

The IP Number = 16777216*w + 65536*x + 256*y + z

For example, if IP address is "202.186.13.4", then its IP Number "3401190660" is based on the Formula 1.

IP Address = 202.186.13.4 (w = 202, x = 186, y = 13 and z = 4)

IP Number = 16777216*202 + 65536*186 + 256*13 + 4
= 3388997632 + 12189696 + 3328 + 4
= 3401190660

It falls in the following range of IP number in the table because it is between the "From IP number" and the "To IP number".

"begin_num","end_num","country","name"
"3401056256","3401400319","MY","MALAYSIA"

From the IP range, the Country Name is Malaysia and Country Code is MY.

The country-level mapping database are available for free but you will have to pay for national, regional and metropolitan databases which reveal visitor details like region, city, latitude, longitude, ZIP code, ISP and domain name from IP address.
__________________
shadenights is offline   Reply With Quote
Sponsored Links
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Find The Man In The Coffee Beans.... shadenights Image Forum 3 22nd October 2007 02:55 PM
stop spam shadenights General 1 15th October 2007 12:55 PM
Protecting ur email from spam...... shadenights Computer Affairs 0 13th October 2007 06:05 PM
Why you'll love a Mac....., Read this and find it why I bought Mac.. Bunny Computer Affairs 2 7th April 2007 10:44 PM
What Is Ip Address Bunny Computer Affairs 1 7th April 2007 10:41 PM


All times are GMT +6.5. The time now is 06:02 AM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0 ©2008, Crawlability, Inc.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81