Install
This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.
Install straight from GitHub with WP-CLI:
wp plugin install https://github.com/zaidmags-27/dom-obfuscator/archive/refs/heads/main.zipNo built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.
A lightweight WordPress must-use plugin that adds random CSS classes to the DOM on every page load. This helps reduce structural fingerprinting of landing pages while keeping the site fully functional.
Features
- Adds a unique random class to the
<body>tag - Adds additional random classes to many elements (divs, sections, headers, links, buttons, headings, etc.)
- Does not remove or replace existing classes — your theme, CSS, and JavaScript continue to work
- Safe with WooCommerce, Elementor, and most page builders
- Extremely lightweight
- Works as a must-use plugin (always active, no activation required)
Installation
- Download or clone this repository.
- Upload the
dom-obfuscator.phpfile to:wp-content/mu-plugins/dom-obfuscator.php(Create the
mu-pluginsfolder if it does not exist.) - The plugin loads automatically. No activation is needed in the WordPress admin.
How to verify it is working
- Open your site in a browser.
- Right-click → View Page Source.
- Scroll to the bottom. You should see a `