This firewall rule doesn't work

I created a firewall rule that says if it’s not Google or Bing and if the request is robots.txt then block. But it’s blocking all requests.

Rule looks like this: (ip.geoip.asnum ne 8075) or (ip.geoip.asnum ne 15169 and http.request.uri.path eq “/robots.txt”)

I have another mechanism in place using a script at the site that will verify a search engine via rDNS, but I wanted to create this and lessen any log in my FTP.

You’d have better luck with an “AND” between those. The rule pretty much says: Hey, Bing is here, but it’s not Google, so Block / Hey, Google is here, but it’s not Bing. Block.

(ip.geoip.asnum ne 8075 AND ip.geoip.asnum ne 15169 AND http.request.uri.path eq “/robots.txt”)

This one says if it’s not Google, AND it’s not Bing AND they’re checking robots.txt, then block.

Thanks. That works.

1 Like

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.