WPThumbs
Themes Plugins By purpose By industry Best-of lists Fix it guides
Free Plugin by Andy Feliciotti v1.8.0

WP Anti-Clickjack

Protect Your WordPress Site From Clickjacking Attacks by Adding the X-Frame-Options Header and Owasp's Legacy Browser Frame Breaking Script.

WP Anti-Clickjack

The facts

Rating
5★ from 3
Active installs
4k+
Price
Free
Last updated
12 Jan 2026
Added
May 2015
Requires WP
5.0.0
Tested up to
WP 6.9.7
Downloads
50,131

Our analysis

AI-assisted

WP Anti-Clickjack is a security plugin designed to protect WordPress sites from clickjacking attacks. It achieves this by implementing the X-Frame-Options HTTP header and a modified version of OWASP’s legacy browser frame breaking script, which together prevent other sites from embedding your site in an iframe.

This plugin is suitable for users who want to enhance the security of their WordPress site against clickjacking. It is easy to install and configure, making it accessible for those with varying levels of technical expertise.

Best for: This plugin suits WordPress site owners looking to improve their site's security against clickjacking.

What it does well

  • Adds X-Frame-Options: SAMEORIGIN HTTP header
  • Includes OWASP's legacy browser frame breaking script
  • Compatible with popular page builders and editors
  • Easy to install and configure
  • Regularly updated and tested with the latest WordPress versions

Where it falls short

  • No additional features or details provided

Verdict

WP Anti-Clickjack offers straightforward protection against clickjacking attacks. It is a practical choice for those prioritising website security.

From the developer

Andy Feliciotti's own description of WP Anti-Clickjack, lightly tidied.

WP Anti-Clickjack is a powerful security plugin that helps prevent your WordPress site from being vulnerable to clickjacking attacks. Clickjacking is a malicious technique where an attacker tricks users into clicking on a concealed link or button by overlaying it on your legitimate website.

This plugin implements two key defense mechanisms:

  1. X-Frame-Options Header: The plugin adds the X-Frame-Options: SAMEORIGIN HTTP header to your site’s responses. This header instructs web browsers to prevent other websites from embedding your site within an iframe, effectively blocking clickjacking attempts.

  2. OWASP’s Legacy Browser Frame Breaking Script: The plugin includes a modified version of OWASP’s legacy browser frame breaking script. This script prevents other sites from putting your site in an iframe, even in browsers that don’t support the X-Frame-Options header. The script is optimized to work seamlessly in browsers with and without JavaScript enabled.

By combining these two security measures, WP Anti-Clickjack provides comprehensive protection against clickjacking attacks, ensuring the safety and integrity of your WordPress site.

For more information about clickjacking defense techniques, refer to the OWASP Clickjacking Defense Cheat Sheet.

Features

  • Adds the X-Frame-Options: SAMEORIGIN HTTP header to prevent clickjacking
  • Includes a modified version of OWASP’s legacy browser frame breaking script
  • Compatible with popular page builders and editors like Elementor, Divi, WPBakery, Bricks, Breakdance, Oxygen, and more
  • Provides filters to disable the anti-clickjacking measures when needed
  • Easy to install and configure
  • Regularly updated and tested with the latest WordPress versions

Additional Details

If you need to disable the clickjacking JavaScript on a specific page, you can use the following filter in your theme’s functions.php file:

add_filter('wp_anti_clickjack', '__return_false');

To disable the clickjacking X-Frame-Options HTTP header, use this filter in your theme’s functions.php file:

add_filter('wp_anti_clickjack_x_frame_options_header', '__return_false');

Read the full description on the official page →

Tagged as

Alternatives

Other plugins for securing a site.

Really Simple Security

Easily improve site security with WordPress Hardening, Two-Factor Authentication (2FA), Login Protection, Vuln...

Free 3M+ installs 4.9★ (8,862)
Wordfence Security

Firewall, Malware Scanner, Two Factor Auth, and Comprehensive Security Features, powered by our 24-hour team....

Free 5M+ installs 4.7★ (4,983)
Akismet Anti-spam: Spam Protection

The best anti-spam protection to block spam comments and spam in a contact form. The most trusted antispam sol...

Free 5M+ installs 4.7★ (1,186)
Loginizer

Loginizer is a WordPress security plugin which helps you fight against bruteforce attacks.

Free 1M+ installs 4.8★ (1,030)
Safe SVG

Enable SVG uploads and sanitize them to stop XML/SVG vulnerabilities in your WordPress website.

Free 1M+ installs 4.9★ (79)
All-In-One Security

Protect your website investment with All-In-One Security (AIOS) – a comprehensive and easy to use security plu...

Free 1M+ installs 4.7★ (1,715)