GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   IP to country redirection script and DB needed... (PayPal payment) (https://gfy.com/showthread.php?t=238632)

CyberSan 02-18-2004 09:48 AM

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.

justsexxx 02-18-2004 09:49 AM

www.ip-sorter.com is what you need(I think)

it's coded in C tho

Andre

CyberSan 02-18-2004 09:53 AM

Quote:

Originally posted by justsexxx
www.ip-sorter.com is what you need(I think)

it's coded in C tho

Andre

Looks good. Thank you!!

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.

Trafficbrokercom 02-18-2004 10:03 AM

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;
}

candyflip 02-18-2004 10:07 AM

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

ListYourPorn 02-18-2004 10:14 AM

IP Sorter :thumbsup

nibbi 02-18-2004 11:15 AM

PHP IP Traffic Filter might be what you are looking for.

http://www.nibbi.net/scripts/ip-filter.php

Intrigue 02-18-2004 11:43 AM

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...)

mech 02-18-2004 12:14 PM

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.

CyberSan 02-18-2004 12:35 PM

Quote:

Originally posted by Intrigue
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...)
That sounds good!

Please hit me up on ICQ - canīt send you a message over GFY..

Or mail me at ow-at-bitchmedia.com

Thank you!

nasko 02-18-2004 01:39 PM

Check the link in my sig.

CyberSan 02-18-2004 02:29 PM

Quote:

Originally posted by nasko
Check the link in my sig.
Hi Nasko,

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)

nasko 02-18-2004 02:51 PM

Quote:

Originally posted by CyberSan


Hi Nasko,

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)

Thanks!

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