手册:$wgBreakFrames

This page is a translated version of the page Manual:$wgBreakFrames and the translation is 55% complete.
安全: $wgBreakFrames
脱离框架集。 This can be used to prevent external sites from framing your site with ads.
引进版本:1.9.0 (r18220)
移除版本:仍在使用
允许的值:(布尔值)
默认值:false

细节

脱离框架集。 This can be used to prevent external sites from framing your site. If set to "true" it will also prevent positive uses of frames.

Since MediaWiki 1.16.1, certain pages (like edit pages) automatically have frames broken by default to prevent clickjacking attacks.

If you set this configuration parameter to true you no longer need to configure X-Frame-Options on the level of your wiki's virtual host. DENY will be set.

参见