It doesn’t get much simpler than this. Install and activate this free plugin to protect your site against malicious URL requests.