Looking for Geo IP redirect script

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • elron
    Confirmed User
    • Jul 2003
    • 1553

    #1

    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
  • GrouchyAdmin
    Now choke yourself!
    • Apr 2006
    • 12085

    #2
    Plenty here

    Comment

    • elron
      Confirmed User
      • Jul 2003
      • 1553

      #3
      Originally posted by elron
      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 ?

      Comment

      • Turboface
        Back in Black
        • Mar 2002
        • 9976

        #4
        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.


        Search Engine Optimization Services for Adult Sites

        Comment

        • Adultnet
          Confirmed User
          • Sep 2003
          • 8713

          #5
          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!

          Comment

          • elron
            Confirmed User
            • Jul 2003
            • 1553

            #6
            Looks like Power Redirector seems to be what i was looking for , thanks .

            Comment

            • elron
              Confirmed User
              • Jul 2003
              • 1553

              #7
              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 ?

              Comment

              • GrouchyAdmin
                Now choke yourself!
                • Apr 2006
                • 12085

                #8
                Originally posted by elron
                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.

                Comment

                • elron
                  Confirmed User
                  • Jul 2003
                  • 1553

                  #9
                  There must be some others out there , post links please

                  Comment

                  Working...