[ad_1]
This is the URL I need to match.
https://example.com/wp-login.php
https://example.com/wp-login.php?action=lostpassword
https://example.com/?s=
https://example.com/?s=xxxxxxx
This is the location matching rule I am using, it does not work, what is wrong please?
location ~* ^/(?:wp-login\.php|\?s\=) {
deny all;
}
[ad_2]