WAF - Create a rule that blocks multiple full URLs unless one specific IP tries to access them.

Hey there!

I started hosting a simple uploading server and I need to block a few URLs on Cloudflare's side.
I put the webserver behind cloudflared and gave it the subdomain "upload". There are multiple paths (/, /paste, /upload and /API) which I need to block unless my IP tries to access them. I have a static IP, this rule won't have to be updated. I want every other path to be accessible by anyone.

I tried:
If incoming requests match.. IP source address - doesn't equal - (my IP) - and - URI full - does equal - https.//upload.dvidpi.ovh/ - or - URI full - does equal - etc... etc.. until I listed out all the paths. - then.. - block

It does work, although only for the root (/) everything else is accessible from a different IP.

Is this possible? Thanks.
Was this page helpful?