Aller au contenu
WordPress.org

Français

  • Thèmes
  • Extensions
  • Actualités
    • Documentation
    • Forums
  • À propos
  • Compositions
    • Équipes
    • Guide de contribution
  • Obtenir WordPress
Obtenir WordPress
WordPress.org

Plugin Directory

Camouflage Security – Static WordPress Firewall and PHP Isolation

  • Envoyer une extension
  • Mes favoris
  • Se connecter
  • Envoyer une extension
  • Mes favoris
  • Se connecter

Camouflage Security – Static WordPress Firewall and PHP Isolation

Par Hamza Mairaj
Télécharger
  • Détails
  • Avis
  • Installation
  • Développement
Support

Description

Every WordPress vulnerability is a PHP vulnerability. Vulnerabilities in core, themes, and plugins are all PHP code. Attackers cannot exploit code that never runs.

Camouflage Security disables PHP for public visitors entirely. It crawls your site, saves a static HTML snapshot of every page, and serves those files directly via .htaccess. When a public request arrives, WordPress never boots. No plugin runs. No theme code executes. There is nothing for an attacker to exploit.

Most security plugins try to block or filter the attacks that reach PHP. Camouflage takes a different position: if PHP never runs for public visitors, there is nothing to block.

Most attacks are bots. They scan for known WordPress URLs, probe the login page, fingerprint installed plugins and themes from URL patterns, and test for known vulnerabilities in specific versions. A site serving static HTML gives them nothing to work with. The login page returns 404. Plugin paths are absent from the page source. WordPress-specific endpoints are hidden or do not respond. Automated scanners pass by without identifying the site as a WordPress installation at all.

Static HTML also means every public page load is faster. Apache serves files directly from disk. No PHP boots. No database query runs. No plugin or theme code executes. Server resources that would otherwise be spent on PHP are freed up entirely, so the site handles more concurrent traffic on the same hardware.

How it works

  • A built-in crawler saves a static HTML snapshot of every page on the site.
  • .htaccess serves those files directly. PHP never runs for public visitors.
  • Anything that cannot be served statically, such as a form submission, an AJAX call, or an unrecognized path, is blocked with a 404 until an administrator explicitly reviews and allows it.

Who this is for

Camouflage Security is built for developers who want the strongest achievable WordPress security. It requires Apache with mod_rewrite and an initial setup session to allow the dynamic requests your site legitimately needs.

Features

Static HTML serving

Pages are crawled and saved as plain HTML, then served by .htaccess with no PHP execution. No WordPress boot. No database query. No plugin or theme code runs for any cached page. Content updates automatically invalidate the relevant cached file.

Login and core file lockdown

The login page and every other WordPress core entry point return 404 to anyone without the admin bypass cookie or a one-time login unlock link. Brute-force attacks against the login page cannot proceed when the login page does not exist for the attacker.

AJAX endpoint disguising

The AJAX endpoint is assigned a configurable decoy path (/assets/sync by default) that the server internally rewrites to the real endpoint. Cached pages reference the decoy path. No WordPress-specific URL is ever visible in the page source or server logs for public visitors.

Optional asset and URL rewriting

When enabled, theme, plugin, and core script, style, and image URLs are mirrored into the static cache under hashed filenames. Cached pages reference those hashed copies. Automated WordPress detection tools like WPScan and Wappalyzer find no identifying information in the page source.

Dynamic request tracking and allow-listing

Every blocked request can be reviewed in the admin and explicitly allowed. Rules match on path, HTTP method, and the set of field names, not exact field values, so a contact form keeps working regardless of what a visitor types. The model is an explicit-permit allowlist, not a blocklist, which means unknown requests are denied by default.

Admin access tools

A signed bypass cookie is issued automatically on login so administrators always see the live, editable site. A one-time login unlock link and a downloadable backup file ensure an administrator can always recover access even if their bypass cookie is lost.

Open Source

Camouflage Security is open source and contributions are welcome. Visit the GitHub repository to report issues, suggest features, or submit a pull request.

Captures d’écrans

General settings tab
General settings tab
Cache tab
Cache tab
Admin access tab
Admin access tab

Installation

  1. Upload the plugin to wp-content/plugins/camouflage, or clone this repository directly into that directory.
  2. Activate it from the Plugins screen in wp-admin.
  3. The plugin requires Apache with mod_rewrite enabled. It writes its own rules directly into .htaccess. It does not support nginx, since nginx does not read .htaccess files.

FAQ

What happens to normal content pages?

Regular content pages are never blocked, only cached. Blocking only ever applies to requests WordPress itself could not resolve, AJAX calls, and POST submissions such as forms and comments.

Will it work on nginx?

No. The plugin relies on Apache’s .htaccess files, which nginx does not read. An equivalent server block would need to be configured manually.

Does disabling tracking stop requests from being blocked?

No. Blocking is never affected by the tracking setting. Tracking only controls whether blocked requests are also logged to the Tracked Requests tab.

Does this replace a WAF or a security plugin like Wordfence?

It addresses a different layer. A WAF filters requests that reach PHP. Camouflage ensures most public requests never reach PHP at all. The two can coexist, but for many sites Camouflage makes a WAF redundant for the public-facing surface.

What is the performance impact?

Cache hits are served entirely by Apache from disk, with no PHP or database involved. Response times are typically faster than even a cached WordPress response. The only overhead is the initial cache build, which runs once and rebuilds automatically when content changes.

Avis

Il n’y a aucun avis pour cette extension.

Contributeurs/contributrices & développeurs/développeuses

« Camouflage Security – Static WordPress Firewall and PHP Isolation » est un logiciel libre. Les personnes suivantes ont contribué à cette extension.

Contributeurs
  • Hamza Mairaj

Traduisez « Camouflage Security – Static WordPress Firewall and PHP Isolation » dans votre langue.

Le développement vous intéresse ?

Parcourir le code, consulter le SVN dépôt, ou s’inscrire au journal de développement par RSS.

Journal des modifications

1.0.2

  • Show an admin notice when mod_rewrite is not available, so administrators know the .htaccess security rules are not active.

1.0.1

  • Resolve the AJAX endpoint and cache directory dynamically (admin_url() and wp_upload_dir()) so the plugin works in non-standard WordPress setups.
  • Store the static cache in a plugin-slug folder inside the uploads directory.
  • Renamed the plugin display name to Camouflage Security.

1.0.0

  • Initial release.

Méta

  • Version 1.0.2
  • Dernière mise à jour il y a 1 semaine
  • Installations actives Moins de 10
  • Version de WordPress 5.2 ou plus
  • Testé jusqu’à 7.1.1
  • Version de PHP 7.4 ou plus
  • Langue
    English (US)
  • Étiquettes
    Brute Forcefirewallhardeninglogin protectionsecurity
  • Vue avancée

Évaluations

Aucun avis n’a encore été envoyé.

Votre avis

Tout voir

Contributeurs

  • Hamza Mairaj

Support

Quelque chose à dire ? Besoin d’aide ?

Voir le forum de support

  • À propos
  • Actualités
  • Hébergement
  • Confidentialité
  • Vitrine
  • Thèmes
  • Extensions
  • Compositions
  • Apprendre
  • Support
  • Développeurs & développeuses
  • WordPress.tv ↗
  • Contribuer
  • Évènements
  • Faire un don ↗
  • Boutique
  • WordPress.com ↗
  • Matt ↗
  • bbPress ↗
  • BuddyPress ↗
WordPress.org
WordPress.org

Français

  • Visitez notre compte X (précédemment Twitter)
  • Visiter notre compte Bluesky
  • Visiter notre compte Mastodon
  • Visiter notre compte Threads
  • Consulter notre compte Facebook
  • Consulter notre compte Instagram
  • Consulter notre compte LinkedIn
  • Visiter notre compte TokTok
  • Visiter notre chaîne YouTube
  • Visiter notre compte Tumblr
Le code est une poésie.
The WordPress® trademark is the intellectual property of the WordPress Foundation.