How to bulk Enable/Disable WordPress Hardening using cPFence Tools?

Control WP Hardening (WebUI Method)

 

  1. Log into the cPFence WebUI and select the server to manage.
  2. Navigate to Tools & UtilitiesWP-AutoShield Bulk Tools.
  3. Open Enable WordPress Hardening to lock down wp-includes, uploads, and wp-config.php; or pick Disable WordPress Hardening to roll it back.
  4. Confirm the operation and let cPFence push the .htaccess rules to every site (or only the sites you selected).
  5. Monitor the log stream to ensure each site applied the changes successfully.

Use this when onboarding new customers or when a developer requests temporary access to hardened paths.

Tip: Ensure autoshield_wp_hardening 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 hardening profile:
    cpfence --bulk-enable-wp-hardening
  3. Disable it when troubleshooting:
    cpfence --bulk-disable-wp-hardening

Remember to re-enable hardening once diagnostics are complete to keep uploads and includes protected.


Need Further Assistance?

Visit our Knowledgebase or contact our support team for help.

  • 0 Los Usuarios han Encontrado Esto Útil
¿Fue útil la respuesta?

Artículos Relacionados

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