🔥 Black Friday Sale: Get 65% OFF Any PageForge Pro Plan! Use code BF65 Claim Offer →
Conta Get it free
WP Anti-Clickjack icon
Manutenção ativamente Testado com WP 7.1 #1 in anti click jacking

WP Anti-Clickjack

Protect your WordPress site from clickjacking with X-Frame-Options and CSP frame-ancestors headers plus a frame breaking script.

Instalações ativas3K+Nível 1K+
Downloads · 30d1.6K▼ -51.4% vs prev. 30d
Classificação5/53 comentários
Pontuação da saúde78/100Bom
Downloads de todos os tempos55.8KSince May 2015
Suporte resolvido—Sem tópicos recentes
RequerWP 5.0PHP 7.0+
Downloads · 7d491▲ +40.7% week over week
Nosso veredicto

Escolha sólida

WP Anti-Clickjack is a solid plugin choice in 2026, with a few things worth checking first. It runs on 3K+ sites, is rated 5/5 and was last updated 6 days ago, and scores 78/100 on our health check.

  • Desenvolvido ativamente — última atualização 6 dias atrás
  • Testado com as últimas WordPress (7.1)
  • Muito poucos comentários até agora

Downloads diários

3356701KSep 5Oct 19Dec 3
Ontem51
Média diária (1y)36
Dia de pico1,341Oct 13, 2026
Últimos 12 meses13K

Os picos de download geralmente seguem uma nova versão — cada site que atualiza automaticamente é um download.

Rankings

Where WP Anti-Clickjack stands today

WordPress.org Classificações de pesquisa

Posição ao vivo na pesquisa de plugins, top 100
Palavra chavePosiçãoPlugins concorrentesCategoria
anti click jacking #1 1 Best anti click jacking plugins →
Browser Frame Breaking Script #1 84 Best Browser Frame Breaking Script plugins →
clickjacking #2 58 Best clickjacking plugins →
segurança >100 10,000 Melhores plugins de segurança →

Adoção da versão

Compartilhamento de sites ativos por lançamento.

  • 1.962.5%
  • 1.719.8%
  • 1.817.7%

Divisão de classificação

★★★★★ ★★★★★ 5 de 3 comentários

  • 5★100.0%
  • 4★0.00%
  • 3★0.00%
  • 2★0.00%
  • 1★0.00%

About WP Anti-Clickjack

From the official readme · v1.9.0

Descrição

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. Frame protection headers: The plugin adds the X-Frame-Options: SAMEORIGIN and Content-Security-Policy: frame-ancestors 'self' HTTP headers to your site’s pages. They instruct web browsers to prevent other websites from embedding your site within an iframe, effectively blocking clickjacking attempts. A Content-Security-Policy your site already sends is left in place, and WordPress post embeds stay embeddable on other sites.

  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.

Recursos

  • Adds the X-Frame-Options: SAMEORIGIN and Content-Security-Policy: frame-ancestors 'self' HTTP headers to prevent clickjacking
  • Works alongside your existing Content-Security-Policy, including nonce-based policies, and keeps framing headers your server or another plugin already sends
  • Settings > Anti-Clickjack screen to let sites you choose (like your other domains or a partner) frame your site, also available as the wp_anti_clickjack_allowed_origins filter
  • Site Health check that loads your homepage like a visitor and warns if a page cache, CDN or server setting drops or duplicates the headers
  • “Check from outside” button that has ClickJack Test load your homepage from the internet, through your CDN, and shows what it sees
  • “Test your site” link on the Plugins screen
  • 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

To disable the clickjacking JavaScript, use the following filter in your theme’s functions.php file. It receives true or false and runs last, so you can also return false only on specific pages:

add_filter('wp_anti_clickjack', '__return_false');

To disable the clickjacking HTTP headers (X-Frame-Options and Content-Security-Policy: frame-ancestors), use this filter in your theme’s functions.php file:

add_filter('wp_anti_clickjack_x_frame_options_header', '__return_false');

To let other sites put your site in a frame, add them under Settings > Anti-Clickjack, one per line. Developers can use this filter instead (it also receives the sites saved in the settings). Wildcards work for subdomains, and the frame breaking script allows the same sites:

add_filter( 'wp_anti_clickjack_allowed_origins', function ( $origins ) {
    $origins[] = 'https://partner.example';
    $origins[] = 'https://*.example.com';
    return $origins;
} );

If your WordPress admin runs on a different domain than your site, that domain is allowed automatically so page builders and previews keep working.

Page builder and editor previews are detected only for logged-in users who can edit posts, so a visitor cannot switch the protection off by adding a page builder parameter to a URL.

If your server, CDN or another plugin already sends an X-Frame-Options header or a frame-ancestors policy, the plugin leaves them as they are and doesn’t add its own.

Serviços externos

The “Check from outside” button and the “Test your site” link use ClickJack Test, a free clickjacking tester. Nothing is sent unless an administrator clicks one of them. When they do, your homepage address is sent to clickjacktest.com, which requests that address from the internet and reports the framing headers it receives. No other data about your site or its users is sent. See ClickJack Test’s terms of use and privacy policy.

Instalação

  1. Download the plugin from the WordPress.org repository or your WordPress admin dashboard.
  2. Upload the plugin files to the /wp-content/plugins/wp-anti-clickjack directory, or install the plugin through the WordPress admin interface.
  3. Activate the plugin through the ‘Plugins’ screen in your WordPress admin.
  4. The plugin will automatically add the necessary anti-clickjacking measures to your site.

Log de Changes

1.9.0

  • New: let sites you choose frame your site with the wp_anti_clickjack_allowed_origins filter (added to the frame-ancestors policy and allowed by the frame breaking script)
  • New: Settings > Anti-Clickjack screen to allow sites to frame yours without code, with a preview of the headers your pages send
  • New: Site Health check that loads your homepage like a visitor and warns when the headers are missing, duplicated or conflicting
  • New: “Check from outside” button (Site Health and settings) that has ClickJack Test load your homepage from the internet and shows what your CDN or proxy serves
  • New: “Settings” and “Test your site” links on the Plugins screen
  • Fixed: no longer replaces a stricter X-Frame-Options: DENY (or any framing header) your server or another plugin already sends
  • Fixed: page builders and previews work when the WordPress admin runs on a different domain than the site
  • Fixed: framing headers that other plugins send later in the same request are now seen and kept
  • Fixed: the frame breaking script is skipped on AMP pages, where custom scripts aren’t allowed
  • Testado até WordPress 7.1
  • Fixed: no longer replaces a Content-Security-Policy that your site or another plugin already sends
  • Fixed: WordPress post embeds can be shown on other sites again
  • Fixed: the wp_anti_clickjack_x_frame_options_header filter now works from your theme’s functions.php
  • Fixed: returning false from the wp_anti_clickjack filter now turns the script off for every visitor, including visitors arriving from other sites
  • Security: page builder preview parameters now skip the script only for logged-in users who can edit posts
  • Sends Content-Security-Policy: frame-ancestors 'self' alongside X-Frame-Options on every supported WordPress version
  • The script now prints through the WordPress inline script API, so Content-Security-Policy plugins can add a nonce to it
  • Code cleanup for WordPress coding standards

1.8.0

  • Tested up to WordPress 6.9
  • Added support for Bricks Builder
  • Added support for Breakdance Builder
  • Added support for Oxygen Builder
  • Added support for Spectra / Starter Templates
  • Added support for Gutenberg Full Site Editor (FSE)
  • Fixed bug with referrer host comparison logic
  • Fixed PHP 8+ compatibility issue with parse_url() error handling
  • Fixed JavaScript cross-origin exception when framed by attacker sites
  • Removed deprecated language attribute from script tag

1.7.9

  • Tested up to WordPress 6.5

1.7.8

  • Bug fixes for same origin requests

1.7.7

  • Tested up to WordPress 6.3
  • Bug fix for Elementor Pro site editor

1.7.6

  • Tested up to WordPress 6.2
  • PHP warning bug fix

Registro de change completo em WordPress.org →

Para desenvolvedores

Este é o seu plugin? Mostre os números.

Adicione um crachá ao vivo ao seu site, Documentos ou Readme do GitHub. Ele é atualizado por conta própria - nenhuma conta necessária.

Selo de Instalações Ativas Selo de classificação Distintivo de pontuação de saúde

FAQ

WP Anti-Clickjack: quick answers

Respostas diretas, extraídas de dados ao vivo WordPress.org.

Fonte: WordPress.org

Is WP Anti-Clickjack free?

Yes. WP Anti-Clickjack is free to download and use from the official WordPress.org plugin directory.

Is WP Anti-Clickjack safe to use in 2026?

WP Anti-Clickjack is a solid plugin choice in 2026, with a few things worth checking first. It runs on 3K+ sites, is rated 5/5 and was last updated 6 days ago, and scores 78/100 on our health check.

How many websites use WP Anti-Clickjack?

WP Anti-Clickjack is active on 3K+ WordPress websites and has been downloaded 55,831 times since it launched in May 2015. It was downloaded 1,601 times in the last 30 days.

Does WP Anti-Clickjack work with WordPress 7.1?

Yes. The developer has tested WP Anti-Clickjack up to WordPress 7.2, the latest release. It requires WordPress 5.0 or newer.

What PHP version does WP Anti-Clickjack need?

WP Anti-Clickjack requires PHP 7.0 or higher. Most hosts run PHP 8.x today, so it works on any modern WordPress hosting.

When was WP Anti-Clickjack last updated?

The latest version, 1.9.0, was released on November 28, 2026 (6 days ago).

Who makes WP Anti-Clickjack?

WP Anti-Clickjack is developed and maintained by Andy Feliciotti.

Alimentado por PageForge

Um modelo e uma planilha. Uma página real para cada pesquisa.

PageForge Transforma cada linha de um CSV em uma página WordPress com seu próprio título, URL, SEO campos e esquema, construído no layout que você já desenhou. Gratuito em WordPress.org.

  • CSV e XLSX, mais Google Sheets em Profissional e Empresarial
  • Seu próprio título, URL, SEO campos e esquema para cada página
  • Funciona com o editor de blocos, Elementor, Divi e Avada
  • Gratuito em WordPress.org, sem cartão de crédito

↑↓ mover↵ abrir