![]() |
![]() |
![]() |
||||
Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us. |
![]() ![]() |
|
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
Thread Tools |
![]() |
#1 |
Confirmed User
Join Date: Jul 2003
Posts: 1,553
|
Looking for Geo IP redirect script
In other words a script that can help me redirect traffic according to countries .
Post links if u have , thanks |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
Now choke yourself!
Industry Role:
Join Date: Apr 2006
Posts: 12,085
|
__________________
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 |
Confirmed User
Join Date: Jul 2003
Posts: 1,553
|
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#4 |
Back in Black
Industry Role:
Join Date: Mar 2002
Posts: 9,976
|
My favorite script right now is Power Redirector
![]()
__________________
Search Engine Optimization Services for Adult Sites |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#5 |
Confirmed User
Join Date: Sep 2003
Posts: 8,713
|
Hi mate, if you are still looking ..
hit me up on ICQ have a good version custom coded by me ![]() icq 502189
__________________
![]() TrafficCashGold Paying Webmasters Since 1996! Awesome Conversions! Fast Weekly Payments! Over 125 Tours! |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#6 |
Confirmed User
Join Date: Jul 2003
Posts: 1,553
|
Looks like Power Redirector seems to be what i was looking for , thanks .
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#7 |
Confirmed User
Join Date: Jul 2003
Posts: 1,553
|
I've bought Power Redirector and it looks like im gonna cancel the transaction , it works fine if u need to redirect just one or two countries , but if u have like 30 (in my case) it hits the sql DB 30 times and searches over the entire ip list each time , and that causes serious SQL overload .
Anyone can recommend on others ? |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#8 | |
Now choke yourself!
Industry Role:
Join Date: Apr 2006
Posts: 12,085
|
Quote:
This is the problem you find when people who aren't very seasoned decide to make software, and design it entirely wrong. The smartest move would be to convert the dotted quad to a long, and run a binary search on it from the prepopulated tables. Something like: Code:
BinarySearch(A[0..N-1], ip) { low = 0 high = N - 1 while (low <= high) { mid = (low + high) / 2 if (ip <= A[mid].EndIp) { if (ip >= A[mid].StartIp) { return true; } else { high = mid - 1; } } else { low = mid + 1 } } return false } .. or, you could install mod_geoip2, and get the country code with every request, then do the world's lamest switch statement. It'd still be faster.
__________________
|
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#9 |
Confirmed User
Join Date: Jul 2003
Posts: 1,553
|
There must be some others out there , post links please
|
![]() |
![]() ![]() ![]() ![]() ![]() |