Redirecting surfers based on IP or browser language?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Slackman
    Confirmed User
    • Feb 2001
    • 118

    #1

    Redirecting surfers based on IP or browser language?

    I want to be able to redirect surfers based on their country.

    If you know a good script for this please post it here!

    I allready tried redirecting users based on their IP# based on RIPE allocations and that works fine for Europe etc but I can't find the ARIN and APNIC allocations so I can't detect wether a surfer is from for instance the US or Canada.
    Maybe I can try to find out based on browser language but that won't seperate for example US and Canada right? But maybe it would work if I also used their hostname (not always available) and check if it ends in for example '.ca'

    Do any of you have any experience with this and know what works best?

    ------------------

    sponsortest.com - over 100 sponsors tested and rated!
  • Slackman
    Confirmed User
    • Feb 2001
    • 118

    #2
    Ok, I think I've got it working now.

    Please click here: http://213.174.92.27/test.php

    and tell me if it gives you the correct country code (or none at all)

    Thanks!

    Comment

    • yys
      Confirmed User
      • Aug 2001
      • 1922

      #3
      It gave me the correct country code, .ca

      Comment

      • Trax
        [----------------------]
        • Aug 2001
        • 14486

        #4
        works.

        ------------------
        Best Paying Sponsors:
        ARS - Best PayPerSignup + AVS Sponsor
        ICQ: 59101924

        Comment

        • X37375787

          #5
          Works.

          Comment

          • Slackman
            Confirmed User
            • Feb 2001
            • 118

            #6
            great!

            keep it coming

            thanks guys

            Comment

            • X-raid
              Confirmed User
              • Jul 2001
              • 328

              #7
              works...

              ------------------
              I can kill you, so fuck off!
              I can kill you, so fuck off!

              Comment

              • gkk
                Confirmed User
                • Jul 2001
                • 169

                #8
                Are you going to be selling this script? It would go well with the one I wrote to identify browser language
                Flashcash : Converting 1:700 with *crap* traffic!

                Comment

                • SinEmpire
                  Confirmed User
                  • Nov 2001
                  • 9813

                  #9
                  If you want to sell the script, send me an email!

                  Brad



                  ------------------
                  President at MojoHost | brad at mojohost dot com | Skype MojoHostBrad
                  71 industry awards for hosting and professional excellence since 1999

                  Comment

                  • X-raid
                    Confirmed User
                    • Jul 2001
                    • 328

                    #10
                    your script works fine...
                    I found this but it was not so good I think... http://www.hotscripts.com/Detailed/6638.html

                    ------------------
                    I can kill you, so fuck off!
                    I can kill you, so fuck off!

                    Comment

                    • aleck
                      Confirmed User
                      • Jan 2001
                      • 940

                      #11
                      heh, finally. so who offers more for such script? }>

                      ------------------

                      PlatinumBucks - amazing conversions, 65% recurring or $30+ per signup
                      BigPenis - $30 per signup from lifetime membership
                      come trade shemale traffic here

                      Comment

                      • Slackman
                        Confirmed User
                        • Feb 2001
                        • 118

                        #12
                        Yes it seems to be getting it right 100% of the time!

                        I based my script on an existing script so I can't sell it to anybody, sorry.

                        Also, I'll use the script for a webmaster program and I kinda like the fact that there won't be any cometition

                        Watch out for one hell of a program anouncement in about a month!!

                        Comment

                        • X37375787

                          #13
                          Is it that hard to write a PHP script that reads out the surfers country code ? Isn't it just a global variable within http ?

                          Comment

                          • Slackman
                            Confirmed User
                            • Feb 2001
                            • 118

                            #14
                            Originally posted by Equinox:
                            Is it that hard to write a PHP script that reads out the surfers country code ? Isn't it just a global variable within http ?
                            Yes it is that hard

                            There's no global variable in php that or perl or whatever language that knows what country the surfer is located in. And using their browsers settings for available languages is very buggy.

                            Comment

                            • aleck
                              Confirmed User
                              • Jan 2001
                              • 940

                              #15
                              yep, script is rather heavy, but with proper optimization works pretty fast

                              ------------------

                              PlatinumBucks - amazing conversions, 65% recurring or $30+ per signup
                              BigPenis - $30 per signup from lifetime membership
                              come trade shemale traffic here

                              Comment

                              Working...