![]() |
IP to country redirection script and DB needed... (PayPal payment)
Hello,
I am looking for a PHP script, that checks the IP of my user, compares this with one of these big country-2-ip databases, and forwards users from one country to a specific site, all others to one other site. Anybody has already done this and can offer this script? Immediate payment via paypal. |
|
Quote:
But to be honest, I am looking for something in PHP, that can be easily configured by our staff here - or possibly put on another domain, too - i f needed. |
http://www.maxmind.com
compile the api as an apache module and then just use: if($_SERVER["GEOIP_COUNTRY_CODE" = = "DE"){ Header("Location: xyz.php"); exit; } else{ Header("Location: abc.php"); exit; } |
This is all built into the CJOverkill traffic script. You might be able to use this to do what you are asking.
http://cjoverkill.icefire.org |
IP Sorter :thumbsup
|
|
I don't have this already, but could get it done for you within a few hours, using ip-to-country's database, and some php code, i'd base it on how php.net does they're ip 2 country code. hit me up (contact info is on my profile) and we can talk specifics (what type of database you want to use, to store the countries, etc...)
|
Check my sig. Geo-Ads PHP can do what you're asking plus geo-target specific ads instead of redirecting if that's something you'd like.
|
Quote:
Please hit me up on ICQ - canīt send you a message over GFY.. Or mail me at ow-at-bitchmedia.com Thank you! |
Check the link in my sig.
|
Quote:
yuor tool looks really cool! Do you have any option for checking each site by a php include (if the user is no italian for example, he can see the sites, others are forwarded to a different site) |
Quote:
There's not such an option. You must have a script installed on your server to be able to do it with a php include. |
All times are GMT -7. The time now is 06:37 AM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123