Best way to handle web-adminable options

Not for 'how-to' coding questions but PHP theory instead, this forum is here for those of us who wish to learn about design aspects of programming with PHP.

Moderator: General Moderators

User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

The closest you can get is a GeoIP lookup or a trace route on a separate thread. Unfortunately, neither is 100% accurate. For example, my connection is tracked to Chicago, where the bulk of the US internet traffic goes through, but I am no where near Chicago. Some servers/routers support asking them what their location is, but then you are relying on information someone has entered, if at all.

Now, a lot of routers have names that can help give away their location, but since there's no real standard for naming routers, you'll need to find a database of decodings, or build your own through trial and error..

My major point is through all this that IP related filtering is entirely unreliable. Roja and I talk (on the boards) about this all the time.
timvw
DevNet Master
Posts: 4897
Joined: Mon Jan 19, 2004 11:11 pm
Location: Leuven, Belgium

Post by timvw »

An (imho) better solution is to allow only ip addresses that belong to your isp. It does require that your isp gives you a list with those blocks (only those that you could get from their dhcp are really needed)...
Post Reply