IP to country redirection script and DB needed... (PayPal payment)

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • CyberSan
    Confirmed User
    • Jul 2003
    • 360

    #1

    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
    Too lazy to set a custom title
    • Aug 2001
    • 13723

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

    it's coded in C tho

    Andre
    Questions?

    ICQ: 125184542

    Comment

    • CyberSan
      Confirmed User
      • Jul 2003
      • 360

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

      Comment

      • Trafficbrokercom
        Confirmed User
        • Dec 2002
        • 542

        #4
        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;
        }
        Last edited by Trafficbrokercom; 02-18-2004, 08:07 AM.

        Comment

        • candyflip
          Carpe Visio
          • Jul 2002
          • 43074

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

          Spend you some brain.
          Email Me

          Comment

          • ListYourPorn
            Confirmed User
            • Jan 2004
            • 791

            #6
            IP Sorter


            Sex Add your sites Click Here

            Comment

            • nibbi
              Confirmed User
              • Sep 2002
              • 104

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

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

              Comment

              • Intrigue
                Confirmed User
                • Feb 2004
                • 662

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

                Comment

                • mech
                  Confirmed User
                  • Oct 2002
                  • 343

                  #9
                  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.
                  Geo-target banners, text, snippets of code...
                  basically anything on your website with Geo-Ads PHP.

                  Comment

                  • CyberSan
                    Confirmed User
                    • Jul 2003
                    • 360

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

                    Comment

                    • nasko
                      Confirmed User
                      • Nov 2001
                      • 148

                      #11
                      Check the link in my sig.
                      3Pic.com - 700k/day
                      30 days listing for $1,000!

                      Comment

                      • CyberSan
                        Confirmed User
                        • Jul 2003
                        • 360

                        #12
                        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)

                        Comment

                        • nasko
                          Confirmed User
                          • Nov 2001
                          • 148

                          #13
                          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.
                          3Pic.com - 700k/day
                          30 days listing for $1,000!

                          Comment

                          Working...