Do any of you have a good script written or can point me to something I can use for this task:
I'm looking to create a php file - example - redir.php and upload that to my server...when someone clicks on it I want it to look to see what location the click came from, and redirect them to a certain URL of my choice. I am looking at this script currently: Article - Redirect Web Visitors By Country Using PHP and MYSQL
and that looks like it will work...but it says I have to download/buy a .csv file with current ip ranges per country. I'm pretty sure that info is free but I don't know where to look. Any ideas? Or is there a better way to do this?
I'm looking to create a php file - example - redir.php and upload that to my server...when someone clicks on it I want it to look to see what location the click came from, and redirect them to a certain URL of my choice. I am looking at this script currently: Article - Redirect Web Visitors By Country Using PHP and MYSQL
and that looks like it will work...but it says I have to download/buy a .csv file with current ip ranges per country. I'm pretty sure that info is free but I don't know where to look. Any ideas? Or is there a better way to do this?