Install Prevent XSS Vulnerability plugin

Prevent XSS Vulnerability plugin can be installed to block parameters in the URL. For instance, in the injected malicious link that hackers may leave on your comment section, they may use symbols like exclamation marks, opening round brackets, etc. By blocking these parameters, the plugin will help mitigate cross site scripting attacks on your WordPress website.
Â