WAF to Block Country PK not Working

I’ve created the rule (ip.geoip.country in {“PK”}) and action is set to “Block” but it’s not actually blocking the traffic from the country. The goal is to block the traffic from a specific country and while it looks straight forward, it doesn’t work and I’ve tried multiple accounts for multiple websites but it simple doesn’t work.

What can be the reason for that?

This is the article that I’ve followed:

The domain is https://junaidali.co/

Looking at some other entries in the community, does the WAF work if CloudWays is DNS only or do I need to use some other service in order to be able to use WAF with my domain?

1 Like

Unless a record is proxied by Cloudflare, Cloudflare has no ability to act on requests as they go direct to the origin.

1 Like

Oh I had no idea. Let me enable the proxy and try again! Thank you!

1 Like

Hi @mjunaidit, your topic has a solution here.

Let us know what you think of the solution by logging in and give it a :+1: or :-1:.


Solutions help the person that asked the question and anyone else that sees the answer later. Login to tell us what you think of the solution with a :+1: or :-1:.

1 Like

This solved the issue! Perfect!

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