How to bulk Enable/Disable WordPress Security Headers using cPFence Tools?

Manage Security Headers (WebUI Method)

 

  1. Log into cPFence WebUI and choose the server.
  2. Navigate to Tools & UtilitiesWP-AutoShield Bulk Tools.
  3. Open Enable Security Headers to push the recommended header set, or Disable Security Headers to remove them.
  4. Confirm the action; cPFence writes/removes the security headers for each site.
  5. Use the log to ensure every site applied the change successfully.

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

Command Line (CLI) Method

  1. SSH into the server.
  2. Enable the header policy:
    cpfence --bulk-enable-sec-headers
  3. Disable it when necessary:
    cpfence --bulk-disable-sec-headers

Keep CDN caches purged so the updated headers propagate immediately.


Need Further Assistance?

Visit our Knowledgebase or contact our support team for help.

  • 0 A felhasználók hasznosnak találták ezt
Hasznosnak találta ezt a választ?

Kapcsolódó cikkek

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...