95–100/100 Lighthouse Speed A+ Security Headers Enforced
Official WP.org Plugins: Pro Licenses from $15/yr or $49 Lifetime! Explore Plugins →

1-Click Official WP.org File Repair, Custom CSP Builder, Scheduled Scans & Licensing

Restore tampered WordPress Core, Plugin, and Theme files in 1 click with SHA-256/MD5 checksum verification and non-executable quarantine backups, delete standalone webshells, build Report-Only/Enforced CSP headers, and configure daily scan alerts.

📋 On This Page (Jump to Section)
PRO Edition Guide: Covers 1-Click Official WordPress.org File Repair & Webshell Eradication (new in Pro v1.1.0), the Custom Content-Security-Policy (CSP) Builder, Daily Scheduled Malware Scans, and WPBay License Management.

1. 1-Click Official WordPress.org File Repair vs. Webshell Deletion (Pro v1.1.0+) #

When malware injects obfuscated code into an essential file like wp-includes/functions.php or an active plugin’s main file, simply deleting that file would crash your website with a fatal PHP error. FBS Secure Optimize Pro v1.1.0+ automatically distinguishes between Official Repository Files and Untracked Drop-In Webshells inside the 6-Layer Malware Scanner:

A. 1-Click “🔧 Repair File (Pro)” for Official Core, Plugin & Theme Files #

When a flagged file belongs to WordPress Core, an official WordPress.org Plugin, or an official WordPress.org Theme:

  • Smart Action Replacement: Pro automatically shows the green 🔧 Repair File (Pro) button and hides the destructive Delete button so you can never accidentally break a required core or plugin file.
  • Cryptographic Checksum Verification Before Disk Write: When you click Repair File (Pro), class-fbs-secure-optimize-pro-file-repair.php downloads the clean original file from the exact matching version tag on core.svn.wordpress.org, plugins.svn.wordpress.org, or themes.svn.wordpress.org and verifies its SHA-256 / MD5 hash against official api.wordpress.org / downloads.wordpress.org/plugin-checksums/ checksums before writing a single byte to disk.
  • Non-Executable Forensic Quarantine Backup: Before overwriting the infected file, Pro saves a timestamped copy of the tampered file as a non-executable .quarantine.txt file inside wp-content/uploads/fbs-optimize-quarantine/ (protected by a deny-all .htaccess and index.php).
  • Immediate OPcache Invalidation & Audit Logging: Calls opcache_invalidate() on the repaired file path so PHP immediately runs the clean code, and records the restoration in your Pro Security Log.

B. 1-Click “🗑️ Delete (Pro)” for Standalone Untracked Webshells #

When the scanner flags an unauthorized standalone drop-in webshell (such as a random PHP shell inside wp-content/uploads/ or root backdoor drop-in that is not part of WordPress Core or any repository plugin):

  • Click 🗑️ Delete (Pro) to quarantine a forensic copy into uploads/fbs-optimize-quarantine/ and permanently eradicate the malicious file from your filesystem in one click.

2. Custom Content-Security-Policy (CSP) Header Builder #

Want to achieve a flawless Grade A+ on SecurityHeaders.com and prevent unauthorized cross-site script execution? Navigate to FBS Optimize → Pro Active Defense → Custom CSP Header Builder:

  1. Start in Report-Only Mode (Recommended): Toggle CSP Mode to Content-Security-Policy-Report-Only. Browsers will evaluate your policy and log any blocked external scripts in DevTools without blocking any visual assets for real visitors.
  2. Configure Directives: Define allowed origins for default-src, script-src, style-src, img-src, font-src, connect-src, and frame-ancestors (e.g., 'self' https://www.googletagmanager.com https://fonts.googleapis.com https://fonts.gstatic.com).
  3. Switch to Enforced Mode: Once verified clean, switch to Enforced (Content-Security-Policy) for maximum browser protection.

3. Automated Daily Background Scans & Email Alerts #

In FBS Optimize → Pro Active Defense, enable Scheduled Daily 6-Layer Malware Scan:

  • Runs the complete 6-Layer Filesystem, Checksum, Database Snippet, WP-Cron, and Hidden-Admin audit automatically once every 24 hours via WP-Cron.
  • Instant Incident Email Notification: If any new threat, modified checksum, or rogue administrator is detected, Pro immediately emails a detailed security alert report to your configured administrator notification address.

4. Developer Filter: Custom Scanner Safe-Match Exclusions #

Agency developers using custom proprietary frameworks can whitelist known-safe internal files via the fbsseop_scanner_is_safe_match filter:

add_filter( 'fbsseop_scanner_is_safe_match', function( $is_safe, $relative_path, $rule_id ) {
    if ( 'wp-content/mu-plugins/my-agency-loader.php' === $relative_path ) {
        return true;
    }
    return $is_safe;
}, 10, 3 );

5. WPBay Pro License Activation & Support #

  • License Activation: Open FBS Optimize → License, paste your WPBay Purchase Code / License Key, and click Activate.
  • 7-Day Offline Grace Period: Includes automatic local backup verification and a 7-day transient grace period so temporary API connectivity issues never interrupt your WAF firewall, 429 rate limiter, or admin capability guard.
Ready to Scale Faster & Safer?

Partner directly with our senior engineering studio. Whether you need hidden malware removed, a 99+ PageSpeed overhaul, a custom WooCommerce plugin, or a Laravel web application, we deliver clean, battle-tested code on a staging copy first.

99+ PageSpeed Score Target
A+ HTTP Security Rating
100% WPCS & Clean OOP Code