1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

What is the best way to go about blocking all ip address except for those in the US?

Discussion in 'Off Topic' started by Itworx4me, Jun 6, 2011.

  1. Itworx4me

    Itworx4me Well-Known Member

    What is the best way to go about blocking all ip address except for those in the US?

    Thanks,
    Itworx4me
     
  2. Dark Matter

    Dark Matter Active Member

    Do you not think doing that would be showing favouritism towards US people?
     
  3. whynot

    whynot Well-Known Member

    Don't forget to block all US proxy addresses.
     
  4. Itworx4me

    Itworx4me Well-Known Member

    Well my site has been hacked multipliable times. I am not currently using xenforo as our forums yet. Our site only gets used by 75 people or less. So if I could limit it by state I would....lol So that is why I am asking how to limit to just U.S. ip address. Just want to know the best way to accomplish this.

    Thanks,
    Itworx4me
     
  5. Ingenious

    Ingenious Well-Known Member

    If you mean you want to completely stop any kind of access for non-US users then probably something in your .htaccess file to do this. Then you'll block at the server level and won't use up as much server resources/bandwidth. If you google "block countries in htaccess" or similar. I would allow US IP addresses and block the rest (rather than the other way around).

    If your server has GeoIP installed that is another good way of doing this.
     
  6. Andy.N

    Andy.N Well-Known Member

    How would you go about that?
     
  7. whynot

    whynot Well-Known Member

    "What is the best way to go about blocking all ip address except for those in the US?"
    Blocking all IP addresses except the US addresses would not go too far because people from oversees could use US proxies.
    The way to stop them:blocking those proxies.

    I wouldn't go for it,too many of them.
     
  8. 3DKiwi

    3DKiwi Member

    Bit of a waste of time because if the hackers have the skill to hack your site then I'm sure using a US proxy server isn't going to be too much of a challenge.

    I would change host. You shouldn't be getting hacked if you're host is any good.

    3DKiwi
     
    dieketzer likes this.

Share This Page