Advanced Geo Mobile Redirect script?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • cybermike
    Confirmed User
    • Jan 2002
    • 4121

    #1

    Advanced Geo Mobile Redirect script?

    There are a lot of different ways to monetize mobile and here is what I want to do but it seems too complicated.

    All Mobile users will get redirected

    US + Canada redirect to URL1,URL2,URL3 etc at random
    Germany will go to URL A, URL B
    France URL C
    Russia URL D
    Argentina URL E
    etc
    THE REST URL F

    The ones I find online are the basic if US/Canada go to URL A ALL ELSE go to URL B
    Hey surfers how about some The Best Porn Sites
  • Klen
    • Aug 2006
    • 32235

    #2
    I have it.

    Comment

    • cybermike
      Confirmed User
      • Jan 2002
      • 4121

      #3
      Originally posted by KlenTelaris
      I have it.
      Clap clap
      Hey surfers how about some The Best Porn Sites

      Comment

      • AHarper
        Confirmed User
        • Jul 2010
        • 846

        #4
        Originally posted by KlenTelaris
        I have it.
        Good reply, very useful information
        Bitcoin Webcams | Send your EU traffic here | Cheap Shared & Reseller Adult Hosting

        Comment

        • Klen
          • Aug 2006
          • 32235

          #5
          Originally posted by cybermike
          Clap clap
          Thanks ;)

          Comment

          • Fletch XXX
            GFY HALL OF FAME DAMMIT!!!
            • Jan 2002
            • 60840

            #6
            Sounds yummy

            Want an Android App for your tube, membership, or free site?

            Need banners or promo material? Hit us up (ICQ Fletch: 148841377) or email me fletchxxx at gmail.com - recent work - About me

            Comment

            • fuzebox
              making it rain
              • Oct 2003
              • 22351

              #7
              Pretty basic php once you've got the maxmind country lite db...

              Comment

              • Showman
                Confirmed User
                • Apr 2002
                • 269

                #8
                ip2nation.com - this should do the trick
                At Sedo.com you can sell your unused domain names and earn money through their paid domain parking program!

                Comment

                • NemesisEnforcer
                  Confirmed User
                  • Aug 2003
                  • 2122

                  #9
                  Originally posted by Showman
                  ip2nation.com - this should do the trick
                  Are you currently using this?
                  The Only Time When Success Comes Before Work Is In A Dictionary.

                  Did you ever notice: When you put the 2 words 'The' and 'IRS' together it spells 'Theirs.'

                  Comment

                  • Klen
                    • Aug 2006
                    • 32235

                    #10
                    Originally posted by Showman
                    ip2nation.com - this should do the trick
                    Their database is incorrect,if you want correct database maxmind geo ip is must have.

                    Comment

                    • Varius
                      Confirmed User
                      • Jun 2004
                      • 6890

                      #11
                      Doing it at the script (PHP, etc...) level is easy, however you probably want the webserver to handle that instead...assuming you use Apache, the key directive you will need is for the randomness: RewriteMap

                      Example:

                      let's say you create /my/dir/de_map.txt and it contains this line:

                      dynamic url1|url2 (as many as you like)

                      Here could be your Germany for example redirect section:

                      RewriteMap servers rnd:/my/dir/de_map.txt
                      RewriteCond %{ENV:GEOIP_COUNTRY_CODE} ^DE$
                      RewriteRule ^(.*)$ http://${servers:dynamic}/$1 [P,L]

                      Of course, you should have your conditions to check whether it's mobile or not as well before that stuff, and make sure MaxMind mod_geoip is installed.

                      Note: Since its 5am here and Im just tossing this out quick from memory, you may wish to double-check the syntax
                      Skype variuscr - Email varius AT gmail

                      Comment

                      Working...