Files

34 lines
1.8 KiB
PHP
Executable File

<?php if (!defined('ABSPATH')) die('No direct access.'); ?>
<div id="aios-file-protection-settings-message" ></div>
<div class="postbox">
<h3 class="hndle"><label for="title"><?php esc_html_e('Prevent your site from being displayed in a frame', 'all-in-one-wp-security-and-firewall'); ?></label></h3>
<div class="inside" id="aios-frame-display-settings">
<div id="enable-frame-protection-badge">
<?php
//Display security info badge
$aiowps_feature_mgr->output_feature_details_badge("enable-frame-protection");
?>
</div>
<form action="" id="aios-frame-display-settings-form" method="POST">
<div class="aio_blue_box">
<?php
echo '<p>'.esc_html__('This feature allows you to prevent other sites from displaying any of your content via a frame or iframe.', 'all-in-one-wp-security-and-firewall').'</p>';
echo '<p>'.esc_html__('When enabled, this feature will set the "X-Frame-Options" parameter to "sameorigin" in the HTTP header.', 'all-in-one-wp-security-and-firewall').'</p>';
?>
</div>
<table class="form-table">
<tr valign="top">
<th scope="row"><?php esc_html_e('Enable iFrame protection', 'all-in-one-wp-security-and-firewall'); ?>:</th>
<td>
<div class="aiowps_switch_container">
<?php AIOWPSecurity_Utility_UI::setting_checkbox(esc_html__('Enable this to stop other sites from displaying your content in a frame or iframe.', 'all-in-one-wp-security-and-firewall'), 'aiowps_prevent_site_display_inside_frame', '1' == $aio_wp_security->configs->get_value('aiowps_prevent_site_display_inside_frame')); ?>
</div>
</td>
</tr>
</table>
<div class="submit">
<input type="submit" class="button-primary" name="aiowpsec_save_frame_display_prevent" value="<?php esc_html_e('Save settings', 'all-in-one-wp-security-and-firewall'); ?>">
</div>
</form>
</div>
</div>