Possible Duplicate:
IP to Country?
IP To Country in PHP
I have a website where I am storing user's IP address when they visit. I want to server them IP based first page content. I think I can store IP ranges in database and when the users come from those ranges I can serve them specific content.
But the question is just after typing website address the website will load and it will show the default content. Please tell how can I achieve this? So that I can serve country based content to my users.
Suppose if IP address is;
IP Address: 109.97.86.2
It should detect that it is Romania and it should present pages which is designed for Romania.