Results 1 to 8 of 8

Thread: Block Traffic

  1. #1

    Block Traffic


    i wanted to blocked all traffic coming to my website except for US & Canada. via .htaccess or any other way could you please help me.


  2. #2
    Join Date
    Feb 2003
    Kuala Lumpur, Malaysia
    Then I think it would be simpler to allow all US and Canada traffic instead of blocking all others.

    I'm not sure if there's simple way, but allowing IPs from Canada and US would be the most direct yet time consuming way.

  3. #3
    Join Date
    Sep 2005
    Well you would first need to find the ranges that the US and Canada use.

  4. #4
    Join Date
    Dec 2001
    Quote Originally Posted by FR-Alex
    Well you would first need to find the ranges that the US and Canada use.
    Not to mention that those ranges can be portable and new ranges are being added pretty consistently.
    Simpli Networks, LLC :: :: Proudly 100% Owned.
    Providing Affordable Managed Cloud/VPS Servers & Server Management Solutions.
    We offer REAL 24x7x365 in-house support - proudly serving our customers since 2005!
    Want to learn more? Give us a call - +1 (844) 4SIMPLI or email sales[@] today!

  5. #5
    May be, you can use an external service like , that tells you the location of traffic. You need to parse the location info and then allow/disallow your traffic.

  6. #6
    Join Date
    Jul 2004
    Might be worthwile reading this discussion:

    In my opinion, using geo-ip snooping is ok to roughly target your ads

    But using it to block traffic would be tricky for a few reasons:

    - Every request would need to be processed. I have yet to see this done at the webserver or OS level, and doing it via PHP/ASP/etc could be expensive

    - As lots of people have pointed out, blocking traffic by country is dangerous becuase it's difficult to be 100% sure of incoming IP locations (in a timely fasion) and also your target audience might not be strictly grouped into countries

  7. #7
    Join Date
    Feb 2004
    here and there
    GeoIP. google it.

    Awknet - DDoS Mitigation, Upstream ACLs/Filtering, Unmanaged Dedicated Servers, BGP IP Transit & More!

  8. #8
    I believe you can check this link.. may be it would be helpful.
    Live Your DreamZ

Posting Permissions

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