1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Block entire US country IPs, except google ips, how to do that?

Discussion in 'Web Hosting' started by basketmen, Feb 3, 2015.

  1. #1
    Hi guys, i want to block entire US country IPs

    i get US country ips list like from this site http://www.ip2location.com/blockvisitorsbycountry.aspx

    but i want to except google ips, how to do that? someone should already did this before, but i cant found the answer yet
     
    basketmen, Feb 3, 2015 IP
  2. gigapros

    gigapros Active Member

    Messages:
    71
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    65
    #2
    Are you talking in context of iptables (or similar) software firewall? Or, r u talking about hardware firewalls (like CISCO)??
     
    gigapros, Feb 3, 2015 IP
  3. basketmen

    basketmen Well-Known Member

    Messages:
    837
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    130
    #3
    i mean block ips from htaccess,

    RewriteEngine on
    order allow,deny
    deny from 1.2.3.4
    allow from all


    block entire US country IPs, except google ips, how to do that?
     
    basketmen, Feb 4, 2015 IP