Blocking certain countries / IP ranges......

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • The Ghost
    IslandDollars.com
    • Oct 2004
    • 12188

    #1

    Blocking certain countries / IP ranges......

    What is the best method for blocking certain countries from accessing your sites? Thanks!
    ISLAND DOLLARS
    1000's of Exclusive TS scenes / Constant Updates
    Best TS Network your surfers will ever join
  • The Ghost
    IslandDollars.com
    • Oct 2004
    • 12188

    #2
    Originally posted by The Ghost
    What is the best method for blocking certain countries from accessing your sites? Thanks!
    countries = ip ranges
    ISLAND DOLLARS
    1000's of Exclusive TS scenes / Constant Updates
    Best TS Network your surfers will ever join

    Comment

    • u-Bob
      there's no $$$ in porn
      • Jul 2005
      • 33063

      #3
      www.maxmind.com
      www.ip2location.com

      Comment

      • Reak AGV
        Confirmed User
        • Dec 2004
        • 4283

        #4
        Bump for you.

        Need Mainstream Content and SEO?
        SEO * Website Copy * Blogs
        Blogging - PR Work - Forum Marketing - Social Marketing - Link building - Articles
        100% Guaranteed Content!

        Comment

        • broke
          Confirmed User
          • Aug 2003
          • 4501

          #5
          Are you looking to block at a firewall or via .htaccess?

          Via .htaccess you can add:

          <Limit GET HEAD POST>
          order allow,deny
          deny from xxx.xxx.xxx.xxx
          deny from xxx.xxx.xxx
          deny from xxx.xxx
          deny from xxx
          allow from all
          </LIMIT>

          To block a specific IP add the whole IP to the deny line. To block a range use a partial IP address.
          Perfect Gonzo

          Comment

          • psili
            Confirmed User
            • Apr 2003
            • 5526

            #6
            Originally posted by u-Bob
            Yea. Just do a country lookup using the above software and do your redirect based on that. It's as easy as something like:

            Code:
            include("/other/company/ip_lookup_code.php");
            $country = getCountry();
            switch($country)
            {
               case "UK": 
                 header("Location: http://www.badteeth.com;);
               break;
               case "JP"; 
                 header("Location: http://www.iwannafuckahotjapanesechick.com");
               break;
              ............
            }
            Your post count means nothing.

            Comment

            • Lycanthrope
              Confirmed User
              • Jan 2004
              • 4517

              #7
              Mod_GeoIP and Maxmind's database. The free one is good, the paid versions are obviously better

              Comment

              • The Ghost
                IslandDollars.com
                • Oct 2004
                • 12188

                #8
                Everyone so far.... thank you for the information.
                ISLAND DOLLARS
                1000's of Exclusive TS scenes / Constant Updates
                Best TS Network your surfers will ever join

                Comment

                • fris
                  Too lazy to set a custom title
                  • Aug 2002
                  • 55679

                  #9
                  ya mod_geoip works wonders
                  Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence.

                  Comment

                  • pussyluver
                    Clueless OleMan
                    • Mar 2003
                    • 11009

                    #10
                    Damn a business thread! Thanks for the info, esp the scripting.

                    Comment

                    • The Ghost
                      IslandDollars.com
                      • Oct 2004
                      • 12188

                      #11
                      Originally posted by pussyluver
                      Damn a business thread! Thanks for the info, esp the scripting.
                      lol.... yeah, they sneak in here every once-in-a-while
                      ISLAND DOLLARS
                      1000's of Exclusive TS scenes / Constant Updates
                      Best TS Network your surfers will ever join

                      Comment

                      Working...