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.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 06-12-2008, 04:45 PM   #1
elron
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
elron is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-12-2008, 05:21 PM   #2
GrouchyAdmin
Now choke yourself!
 
GrouchyAdmin's Avatar
 
Industry Role:
Join Date: Apr 2006
Posts: 12,085
Plenty here
__________________
GrouchyAdmin is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-13-2008, 02:55 AM   #3
elron
Confirmed User
 
Join Date: Jul 2003
Posts: 1,553
Quote:
Originally Posted by elron View Post
In other words a script that can help me redirect traffic according to countries .

Post links if u have , thanks
The script there seems to be analytic one and can't be used to manage traffic .

Any others ?
elron is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-13-2008, 03:03 AM   #4
Turboface
Back in Black
 
Turboface's Avatar
 
Industry Role:
Join Date: Mar 2002
Posts: 9,976
My favorite script right now is Power Redirector
  • Redirect based on keyword.
  • Redirect based on phrases.
  • Redirect based on ip address.
  • Redirect based on referrer.
  • Redirection based on transparent proxies.
  • Redirection based on anonymous proxy.
  • Redirection based on country.
  • Redirection based on user-agents.
  • Install site-wide or per-page.
  • 301 redirects (search engine friendly).
  • Free daily updated ip-to-country database.

Turboface is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-13-2008, 03:24 AM   #5
Adultnet
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!
Adultnet is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-13-2008, 03:55 AM   #6
elron
Confirmed User
 
Join Date: Jul 2003
Posts: 1,553
Looks like Power Redirector seems to be what i was looking for , thanks .
elron is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-14-2008, 09:45 AM   #7
elron
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 ?
elron is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-14-2008, 09:53 AM   #8
GrouchyAdmin
Now choke yourself!
 
GrouchyAdmin's Avatar
 
Industry Role:
Join Date: Apr 2006
Posts: 12,085
Quote:
Originally Posted by elron View Post
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 .
Haha. Wow.

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
  }
Would be at least O(log n), which is going to be as good as you can do with MySQL, anyhow.

.. 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.
__________________
GrouchyAdmin is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-14-2008, 11:40 AM   #9
elron
Confirmed User
 
Join Date: Jul 2003
Posts: 1,553
There must be some others out there , post links please
elron is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.