How to bulk Enable/Disable WordPress XSS Filters in Posts using cPFence Tools?

Control XSS Filtering in Posts (WebUI Method)

 

  1. Log into cPFence WebUI and pick the server you are modifying.
  2. Navigate to Tools & UtilitiesWP-AutoShield Bulk Tools.
  3. Select Disable XSS in Posts to strip risky embeds/iframes, or Enable XSS in Posts to restore full editor freedom.
  4. Confirm the action; the MU plugin settings are updated across every detected site (or only those selected with the site selector).
  5. If you rely on WP-AutoShield automation, disable the matching setting in System Settings so it does not revert unexpectedly.

Disabling XSS features quietly blocks common exploit payloads inside the WordPress editor while keeping front-end output stable.

Tip: Ensure autoshield_disable_xss_in_posts is set to ‘Off’ in the Settings page (if it’s currently on), or WP-AutoShield will automatically re-disable it during the next 6:10 AM run.

Command Line (CLI) Method

  1. SSH into the server.
  2. Disable risky embeds:
    cpfence --bulk-disable-xss-in-wp-posts
  3. Enable them again if needed:
    cpfence --bulk-enable-xss-in-wp-posts

Communicate with developer-heavy tenants before disabling rich embeds so they understand why certain shortcodes stop working.


Need Further Assistance?

Visit our Knowledgebase or contact our support team for help.

  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

How to Perform and Export Wordpress Vulnerability Scans with cPFence?

cPFence provides powerful tools for identifying and analyzing Wordpress vulnerabilities. With the...

How to Generate a List of All WordPress Sites on Your Server?

cPFence provides an easy way to generate a comprehensive list of all WordPress sites on your...

How to Quickly Identify Infected WordPress Sites Using cPFence?

cPFence makes it easy to identify and clean infected WordPress sites on your server. Follow the...

How to Clean an Infected WordPress Site?

Has your WordPress site been infected, and cPFence reported malware or other issues? Don’t worry;...

How to Secure Your WordPress Sites with cPFence?

WordPress is a powerful platform, but it can become vulnerable if not properly secured. With...