Click to See Complete Forum and Search --> : IP selection


ixpa
April 25th, 2009, 06:14 AM
i'd like to script something that the page's charset is selected by accessing user's IP.

idon'tknow

PeejAvery
April 25th, 2009, 10:27 AM
Getting the user's IP will only tell you their possible location. Some IPs cannot be reverse checked. This will in no way help you to set the charset for the page.

Xeel
April 27th, 2009, 10:52 AM
Depending on which server-side language you could implement there exist several libraries to use for locale detection. There are small integrated "databases" of IP ranges and proxies in Java and PHP that almost never lie about IP location.

And if this is some kind of security restriction - this kind of things is done by configuring the server and firewall, and not on JS level.