Results 1 to 3 of 3
  1. #1

    block foreign traffic

    Hi, is there a was with htaccess to block all people from outside the usa from accessing a site?

  2. #2
    Theoretically you can. But it won't be very efficient at all to load a large list of IPs in the .htaccess for every page view. You are better off, using a system to check the country of the IP via the scripts on your page for example.
    Like us on Facebook to qualify for discounts!
    Offering: | Internap FCP Bandwidth! | Rebootless Kernel Updates! | Magento Optimized Hosting | Wordpress Hosting |
    Services: | Managed Multiple Cores 64bit Servers | Server Management |

  3. #3
    Join Date
    Aug 2002
    Yes, you can. Go ahead and check out the block assignments which are at . You will need to restrict traffic to the ARIN blocks (which consequently, will still let Canadian and African traffic through since those regions do not have their own regional registries).

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts