How to setup firewall rule

Hello,

How can i setup firewall rules to :
• Block All traffic, except Vietnam
• Block All BOT, except Google Bot (for index site)

Thank you so much.

And then:

This one is a bit more complex. Are you sure you don’t want other search engines crawlers too?

If you did it would be easy:

Also add an appropriate Bot Fight Mode level:

1 Like

Thank you so much for help, i have set it up and here is my expression code :
rule 1 : (not ip.geoip.country in {“VN”} and not cf.client.bot)
rule 2 : (ip.geoip.asnum in {16509 15169} and not cf.client.bot)

  • in the rule 1, the weird thing is i need to have “not.cf.client.bot” while i already have rule 2, which mean if i have rule 1 without “not cf.client.bot” and rule 2 like i described above, google can not crawl my site.

And the importand things are : With my firewall rules i wrote above, can i Block all BOTS except “known bots” + Block all country except “VN” ?

1 Like

To block all bots, use Bot Fight Mode:

Then your rules should work fine.

Yes, i have turned on bot fight mode. Thank you so much.
Can you please guide me about this problem ?


rule 1 : (not ip.geoip.country in {“VN”} and not cf.client.bot)
rule 2 : (ip.geoip.asnum in {16509 15169} and not cf.client.bot)

* in the rule 1, the weird thing is i need to have “not.cf.client.bot” while i already have rule 2, which mean if i have rule 1 without “not cf.client.bot” and rule 2 like i described above, google can not crawl my site.


I mean i don’t understand why i need to include “not cf.client.bot” in the Rule 1, when i have already setup bot rules for Rule 2

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