Is there a function to restrict access to specific folders in CloudFlare Pro?

Hi!
I would like to restrict access to specific folders to increase the security of the management screen. For example, by region.
I thought it was possible with page rule settings. But I can’t find a suitable menu.
Maybe I’m searching wrong.
My license is Pro.
Is there a function to restrict access to specific folders in Cloudflare Pro?

You can do that with WAF custom Rules in the security tab.

1 Like

Hi, Laudian!
thank you!

I don’t know how to specify a specific folder.
I don’t want to target the entire site.
Therefore, I imagined that it would be difficult to use WAF custom rules.

How can I include only a “specific folder” and its subordinate pages?

You can use URI path starts with /some/folder as a custom filter expression.

1 Like

I understood that it was possible.
But I don’t know how to write a custom filter!

Please also tell me how to write it.
I’m very helpful!
thank you!

I’m not sure I understand your question. Can you show a screenshot of where you are stuck creating a WAF Custom Rule?

1 Like


thank you! Laudian!

I expect that you can specify “which part to exclude?” from “Edit expression”.
But I don’t know how to write it.

To the right of your Country Rule you select And. Then you can add a second row where you specify the URI Path begins with that I mentioned earlier.

1 Like

ah! Is it so!
Should I specify it with “and”?

Thank you Laudian!
Thank you so much for teaching me until the end! !