I don’t know why all the result from Google are referring to this expression:
(http.request.uri.path contains "wp-login.php") or
(http.request.uri.path contains "wp-admin/" and not
http.request.uri.path contains "wp-admin/admin-ajax.php" and not
http.request.uri.path contains " wp-admin/theme-editor.php")
This is not working because WordPress will redirect to domain.com/wp-admin after login and which has been blocked by CloudFlare. But if I don’t block wp-admin
, it allow hackers to visit the login page.
What’s the correct way of doing this?