The reading of an IP address works only server-side, ie using a scripting language like PHP or Java programming language as is this possible. The widespread opinion that this could work with Javascript is wrong. JavaScript is executed client side.
is nowadays often used PHP. Here is an example: $ HTTP_SERVER_VARS ['REMOTE_ADDR']
's not needed.
With $ HTTP_SERVER_VARS can be read including the operating system and browser.
The recognition of the home country is a much cunning as this is not possible on the language is. For this purpose, you must consult a third party. In most cases, a so called WHOIS server is used for this purpose. This service is better known for the retrieval of data from a domain registrar, but also IP / AS saved 1 information.
an autonomous system. Summary of a group of IP networks, with the administrative management. The AS number is used for the identification of an autonomous IP network.
0 comments:
Post a Comment