I want a little help with this First, I downloaded MaxMind's GeoIP.dat database from here Then I downloaded geoip.inc from here Then I uploaded those two files to the same directory where my page is located. I edited my php page and wrote this script inside of it: Code: AND THIS WAS WORKING GREAT ! BUT I want something like this : Country A users redirect to W url Country B users redirect to X url Country C users redirect to Y url Country D users redirect to Z url And remaining country users redirects to the same URL that I want. Can anyone please edit this php code with like 2-3 countries examples to different URLs and remaining to other URL that I want so that I can learn how to add more other (more than 4 country) countries to that code because I am really not good at php or html. I TRIED THIS (the below code) ALSO BUT THAT WAS NOT WORKING waiting for anyones reply. please reply as soon as you can. Thanks