How to blacklist a backoffice uri except from know IPs

Here is the use case : i’m using (was using ?) an Azure AppGW with WAF for a public (Wordpress) web site.

I have a custom rule that denies access to specific uris (say “/myadminpage) EXCEPT if the IP address is “known”…

This allows to access the backoffice pages only from specified addresses.

is there a way to do the same rule with bunkerweb ??

i did not find any way.. (using another servername/url is NOT an option, because the backoffice redirects to the “non admin url”)

is there some kind of “blacklist uri with exception of whitelisted IPs” option ??

best regards

Probably you will need to inject nginx config directly in Config area for your service.