Need to limit access to a page to visitors from Australia or NZ

What is the name of the domain?

o4-media.com

What is the error number?

No error - just can’t figure out how to do it

What is the error message?

No error - just can’t figure out how to do it

What is the issue you’re encountering

As per Topic title

What steps have you taken to resolve the issue?

I have a page on the website that must only be viewable by people coming to the site from either Australia or New Zealand.

I want to block, or better yet, redirect everyone else that tries to access that page.|

What are the steps to do this?

Your DNS records for the website will need to be proxied for any rules set on Cloudflare to affect your traffic. At the moment they are “DNS only”…
https://cf.sjr.org.uk/tools/check?45f6798d44b84d8ea4e5c6db0847d6c4#dns

Once proxied, create a custom WAF rule as here…

…to block requests to the URL if the country is not Australia or New Zealand.

3 Likes

Thank you!

That fixed the problem.

1 Like

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