IP Block Related

What is the name of the domain?

supplier.gnik.global

What is the issue you’re encountering

Security Related

Was the site working with SSL prior to adding it to Cloudflare?

Yes

What is the current SSL/TLS setting?

Full

What are the steps to reproduce the issue?

I want to block access to our website from specific countries like Bangladesh, Bhutan, China, and India but we need to allow access from certain IPs within India since I am based there. I am asking if there is a mechanism to do this and how it can be implemented using Cloudflare.

Create a WAF custom rule that looks like this…

We have three subdomains for a domain, and we want to apply different rules for each subdomain. For example, one subdomain is supplier.gnik.global, where we want to allow specific countries like Bangladesh, Bhutan, China, and India. The second subdomain is buyer.gnik.global, where we want to allow specific countries like the US, UK, and Australia. Is this possible?

Yes, just create two rules, and add a hostname is supplier.gnik.global term for example to specify which host name the rule applies to.

Can you please provide a screenshot so it is more helpful?

Can you please provide a screenshot so it is more helpful?

Hostname needs to be just buyer.gnik.global, not a URL. Look at the e.g. below the input box for the expected formats for a field type.

2 Likes

Can you please provide a screenshot so it is more helpful?

You don’t need a new screenshot to figure this out.

The correct syntax is shown in your own screenshot under the text field where you have the invalid format. You need to lose the scheme in front of the hostname.

e.g. Use example.com not https://example.com

1 Like

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