Results 1 to 5 of 5
  1. #1

    Block entire country using iptables

    Is this possible? I've searched but couldn't come up with anything useful. I'm trying to block a certain country from ever even pinging my server's IP address. How can this be done?

  2. #2
    Join Date
    Dec 2005
    Location
    Internet
    Posts
    1,337
    Senior Server Administrator

  3. #3
    Join Date
    Feb 2003
    Location
    North Hollywood, CA
    Posts
    2,554
    IP blocks move fast keep that in mind when you ban Asia... or the country you pick.
    Remote Hands and Your Local Tech for the Los Angeles area.

    (310) 573-8050 - LinkedIn

  4. #4
    Hello,

    Yes it is possible to block your site for entire country for this you have to get the IP address asigned to that country and then blocked it and it is done

    Thank you.

  5. #5
    Join Date
    Apr 2005
    Location
    San Francisco, CA
    Posts
    1,029
    If you plan to ban some coutries from accessing your website I would suggest do it by using custom written .htacces - otherwise thru IPTables it's will very slow and not very accurate - IP owners changes all the time...

Posting Permissions

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