473,786 Members | 2,574 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Detect Visitor's Town and Country

I've been to a few websites where it displays the town, state (if USA),
country I'm browsing from. Now, I know that detecting country is easy, but
how do you determine the town?

What ASP components do this?

Thanks,

Bill.

Jul 22 '05
32 4287
> Do you need me to explain that more fully to you?

Hard to explain anything from a killfile. *plonk*
Jul 22 '05 #31

"Jeff Cochran" <je*********@zi na.com> wrote in message
news:42******** *******@msnews. microsoft.com.. .
On Wed, 13 Apr 2005 14:03:53 -0400, "Victor" <bl***@blank.co m> wrote:

"Jeff Cochran" <je*********@zi na.com> wrote in message
news:42******* ********@msnews .microsoft.com. ..
On Mon, 11 Apr 2005 15:37:38 -0400, "Victor" <bl***@blank.co m> wrote:

>
>"Curt_C [MVP]" <software_AT_da rkfalz.com> wrote in message
>news:OX******* ******@TK2MSFTN GP09.phx.gbl...
>> there is no guaranteed way of doing this...
>> Best you can do it get the users IP and do some geo-lookups but even

these
>> aren't accurate, they will only get you a location for the users ISP at >> best.....
>
>That's the old way.
>
>Most reverse DNSs now give you the domain not of the ISP, but of the

user's
>internet connection location to the ISP, which then needs to be decoded >(which is what I'm asking for) to give you the town.

Reverse DNS gets you whatever is entered in the in-addr.arpa reverse
domain for the zone. It may be an indicator of location, it may not.

Now, how do you get my country and town when I dial into a Canadian
ISP from here in the US?


Like I wrote, I get the location of the Canadian ISP connection (duh), whichis exactly what I was telling you when I wrote that you get "the user's
internet connection to the ISP". Do you need me to explain that more fullyto you?


I understand you, and your explanation. What I don't understand is
how the Canadian ISP location I dialed into equates in any way to
identifying me or my security access, since I only dialed the Canadian
number because my US ISP was busy for two hours straight.


For the situation you mention above... hmmm... O.K., I guess I'll have to
handle it by tracking some users with a persistent cookie.

in pseudoCode,

' So, when the user logs in the very first time,
IF GeoBytesLocatio n <> "undefined" , and other security stuff is valid,
THEN set persistant cookie and record browser ID
END IF

'On subsequent login,

IF the GeoBytesLocatio n is within xxx miles, and other security stuff is
valid,
THEN it's O.K., and set cookie
Log them in
ELSE 'it's outside of xxx miles
check if it's been X hours since login 'maybe they're travelling?
check if "Proxy Network" '(AOL, MSN, etc)
check for cookie
do other non-geographic security stuff
make decision if it's O.K.
END IF

This is going to depend upon other stuff as well, since some users delete
all their cookies on a regular basis.

Jul 22 '05 #32

"Jeff Cochran" <je*********@zi na.com> wrote in message
news:42******** *******@msnews. microsoft.com.. .
On Wed, 13 Apr 2005 14:21:58 -0400, "Victor" <bl***@blank.co m> wrote:

"Jeff Cochran" <je*********@zi na.com> wrote in message
news:42******* ********@msnews .microsoft.com. ..
:

Okay, so now your security relies on an ISP entering information into
a PTR record that you can refer to, then possibly adapt in some other


No, I'm saying that ONE aspect of my security uses this. My security does
not RELY on this.


I'm still puzzling how it could even be a part of a security test,
since it is so highly inaccurate and depends on information you can't
guarantee is correct. Let's say I edit my PTR records to point to the
town you expect the person I'm impersonating to be from, does that
improve my chances of bypassing your security?

I equate this with a security guard at a bank. Since many bank
employees wear white shirts, is there any realistic reason the guard
should use a white shirt as an indicator of access level? There will
likely be non-employees wearing white shirts, there may be employees
wearing colored shirts and there is nothing to prevent the bank robber
from wearing a white shirt.


These are good questions. From what I can see from GeoBytes, there's a
variable that gives you a percent of certainty of the location. For example,
if I access using Comcast Cable, or Verizon DSL, it will give me a location
with a certainty of 98%. If I access using AOL, it may give me a certainty
of 20%. An AT&T dialup might give me a certainty of 85% for the dialup
location while also setting one of the proxy bits telling me that could have
dialed up from anywhere in the world to that location.

The real issue for me is properly coding in the LOGIC to take this stuff
into account (by considering the objections I'm reading here).


Jul 22 '05 #33

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

11
8455
by: abracad | last post by:
Hi Is there any (preferably free) PHP script that will identify the country of a visitor, thus allowing one page to be delivered to those from A, B and C, and another to those from X, Y and Z? Thanks
3
11302
by: bush | last post by:
hi everyone! i want to get the ipaddress,and the country name of a webpage visitor,using asp.Net(C#).if anyone knows about it,plz rply me. thanx in advance.
0
10363
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10164
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10110
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9962
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8992
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6748
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5398
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5534
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4067
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.