Script to block people not in the USA?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Tony Montana
    Confirmed User
    • Jan 2005
    • 794

    #1

    Script to block people not in the USA?

    I need to block all visitors not from the USA.

    Does anyone know of a good script?
    I am a marketing Genius.
  • psili
    Confirmed User
    • Apr 2003
    • 5526

    #2
    Use Maxmind.com's (or any other company's) GEOIP solution.
    Your post count means nothing.

    Comment

    • Lycanthrope
      Confirmed User
      • Jan 2004
      • 4517

      #3
      Aye, Maxmind's http://www.maxmind.com/app/mod_geoip

      Install the database, then just this to your .htaccess

      GeoIPEnable On
      GeoIPDBFile /path/to/GeoIP.dat
      RewriteCond %{ENV:GEOIP_COUNTRY_CODE} !^US$
      RewriteRule ^(.*)$ http://yourinternationaldestination.here [R,L]

      Comment

      • Tony Montana
        Confirmed User
        • Jan 2005
        • 794

        #4
        Awesome. Thanks
        I'll give it a try.
        I am a marketing Genius.

        Comment

        • Moren
          Registered User
          • May 2005
          • 20

          #5
          The Maxmind's is great !

          Comment

          • directfiesta
            Too lazy to set a custom title
            • Oct 2002
            • 30140

            #6
            Or ask a question that only Americans don't know the answer ....

            such as:

            " On what continent is Morocco " ....


            That should pretty much do it ....
            I know that Asspimple is stoopid ... As he says, it is a FACT !

            But I can't figure out how he can breathe or type , at the same time ....

            Comment

            • cezam
              Confirmed User
              • Jun 2003
              • 1363

              #7
              Originally posted by directfiesta
              Or ask a question that only Americans don't know the answer ....

              such as:

              " On what continent is Morocco " ....


              That should pretty much do it ....

              Comment

              • Brian911
                Confirmed User
                • Dec 2001
                • 654

                #8
                Originally posted by directfiesta
                Or ask a question that only Americans don't know the answer ....

                such as:

                " On what continent is Morocco " ....


                That should pretty much do it ....
                definately more secure than geoip! thumbs up
                - Brian
                [ a directive occured while processing this error ]

                Comment

                Working...