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/frontiers-wp/frontiers-simple-iframe-buster/archive/refs/heads/main.zipA lightweight, efficient WordPress plugin designed to prevent unauthorized third-party websites from framing your content. By implementing a reliable client-side Frame Buster (Framebreaker) mechanism alongside native security headers, this utility effectively mitigates Clickjacking and UI redress attacks.
🚀 Features
- Lightweight Footprint: Zero impact on site performance or initial page load metrics.
- Instant Prevention: Immediately forces the browser window to navigate to the top-level frame if an unauthorized embed attempt is detected.
- WordPress Native: Designed specifically to integrate seamlessly with standard WordPress architectures without conflicting with core hooks.
- Autoptimize Automation: Automatically injects script and style exclusions directly into Autoptimize configuration filters.
- Defense in Depth: Serves as a critical client-side fallback layer alongside server-side
X-Frame-Optionsdirectives.
🛠️ Installation
Via WordPress Dashboard
This repository is pre-structured for clean installation. Even though GitHub appends a branch suffix to the initial download file, the internal plugin files are perfectly aligned:
- Click the green Code button at the top of this repository and select Download ZIP.
- Navigate to your WordPress Admin Dashboard > Plugins > Add New.
- Click Upload Plugin, choose the downloaded ZIP file, and click Install Now.
- Click Activate.
Via Manual Server Extraction (FTP / SSH)
If you are deploying directly via a server terminal pipeline, copy the nested plugin folder into your target directory:
# Clone the repository
git clone https://github.com
# Move only the structured plugin directory to your WordPress installation
cp -r frontiers-simple-iframe-buster/frontiers-simple-iframe-buster /var/www/html/wp-content/plugins/
📖 How it Works
The plugin enqueues a non-obtrusive, rendering-optimal JavaScript snippet across your site header. If the page is trapped inside an external `