This WP plugin blocks XSS by encoding harmful URL characters & safely handling HTML in $_GET. Customizable settings for enhanced website security.
As of April 2026, Prevent XSS Vulnerability is a WordPress xss plugin with 6.0K+ active installations and a 5/5 rating from 7 reviews. It has been downloaded 76K+ times in total. Requires WordPress 3.5+ and PHP 5.6+. Available on WordPress.org since 2017. Download volume is stable this week. Top alternative: Content Security Policy Manager.
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 active, the plugin checks URLs for specific characters. If it finds any of these characters in the URL, it redirects the user to prevent a potential XSS attack. You can customize which characters to block or allow.
I got positive on scan websites
Thanks for the awesome plugin. it helps to fix the XSS attacks. But we need to add more special charter to include manually like exclude list. this helps for every one-> feature Request.
keep rocking!!!…
Regards,
Saravanan
We were being harassed by our ISOs because the Acunetix scans kept coming back with HIGHs. Always XSS. We tried everything the report recommended as a remediation…nothing worked.
This plugin should come bundled with WP. Or at the very least be added to the list of recommendations Acunetix suggests.
Thank you for creating and sharing it.
Very useful plugin, thank you!
We were directed by a security researcher to an XSS vulnerability on our site, and this plugin seems to have solved the issue. Only plugin with this functionality I was able to find. Fairly straightforward and flexible.
| WordPress | 3.5+ requiredTested up to 6.8.5 |
| PHP | 5.6+ required |
console.group('Self-XSS Warning') block. This keeps all related messages together in the developer console, making the warning stand out and preventing it from getting lost among other console output.Plugin data sourced from WordPress.org. Analysis and metrics by PluginSift.