by Sami Ahmed Siddiqui on WordPress.org
This WP plugin blocks XSS by encoding harmful URL characters & safely handling HTML in $_GET. Customizable settings for enhanced website security.

It removes the parameters from the URL which are used in XSS Attack and redirects the user (Recommended).
This plugin helps safeguard your website against two common types of Cross-Site Scripting (XSS) vulnerabilities:
This plugin provides several layers of protection:
Blocking: When enabled, the plugin scans URLs for specific parameters. If any of the listed parameters are found in the URL, the plugin redirects the user to prevent potential XSS attacks. You can customize the list by excluding specific parameters you still want to allow.
()<>[]{|}Encoding: For additional security, the plugin encodes certain characters within the URL parameters. This prevents malicious code from being executed even if it’s included in the URL. You can also exclude specific parameters from being encoded.
!"'()*<>^[]{|}Escaping HTML in $_GET: This plugin automatically escapes HTML characters within the $_GET variable. This is crucial if your website retrieves data from URLs and displays it in the HTML content. This helps prevent malicious scripts from being injected through user-controlled input.
By implementing this plugin and following the recommendations, you can significantly enhance your website’s security against XSS attacks.