Manual:$wgBreakFrames/zh
From Linux Web Expert
<translate> Security</translate>: $wgBreakFrames | |
---|---|
脱离框架集。 This can be used to prevent external sites from framing your site with ads. |
|
<translate> Introduced in version:</translate> | 1.9.0 (r18220) |
<translate> Removed in version:</translate> | <translate> still in use</translate> |
<translate> Allowed values:</translate> | (布尔值) |
<translate> Default value:</translate> | false |
<translate> Other settings:</translate> <translate> Alphabetical</translate> | <translate> By function</translate> |
细节
脱离框架集。 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.