Manual:$wgBreakFrames

Details
Break out of framesets. This can be used to prevent external sites from framing your site. If set to "true" it will also prevent positive uses of frames.

Note, since MediaWiki 1.16.1, certain pages (like edit pages) automatically have frames broken by default to prevent click jacking attacks.