How to set up a firewall

/?s=
This is the search page of wordpress
I want the search page to be verified and recognized.
Prevent malicious searches.
How to set up in the firewall
Thank you! !

Try a firewall rule to check if Query String contains s=, then JS Challenge.