Rewrite and block url wp-login

rewrite wp-login to /example
firewall rule:block /wp-login
result: rewrite takes place before the block. So, traffic to /example was blocked.

My goal was to block direct request to /wp-login while redirect to /example get redirected it to wp-login without blocking
is there any workaround ?

I have no explanation why when I set a firewall rule (challenge all) prior to the block wp-login rule, the redirect to /example works
1- challenge all (not
2- block (http.request.uri.path contains “/wp-login”)
the redirect to /example works !!!

Kindly change your topic category from Security - Access to just Security so that your topic will get more attention from the relevant members.

Security - Access is for Cloudflare Access related discussions.

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