Would this WAF rule work the way I want it to?

Essentially, I want to block everyone but me (my IP) from accessing wp-admin, wp-admin.php, wp-login and wp-login.php. Would the wildcard below work?
No description
11 Replies
David
DavidOP2mo ago
Stump... Saved someone the trouble of testing it for me. Can someone please suggest a better WAF rule? Thanks :)
No description
Chaika
Chaika2mo ago
Hostname eq AND URI Path is in AND IP Source Address is not in
David
DavidOP2mo ago
And then i do OR and repeat that statement for wp-admin?
Chaika
Chaika2mo ago
no it'd be part of the URI Path is in list like so
David
DavidOP2mo ago
Oh I see Thanks :)
Chaika
Chaika2mo ago
No description
Chaika
Chaika2mo ago
missing the .php extensions but you get the point
David
DavidOP2mo ago
👍
Chaika
Chaika2mo ago
Path field doesn't include query params so don't have to worry about those
David
DavidOP2mo ago
Deployed and it works. Thanks again :) closing this post
Incrisz
Incrisz2mo ago
were you able to implement this rule using FREE PLAN?
Want results from more Discord servers?
Add your server