Files

30 lines
1.8 KiB
PHP
Executable File

<?php if (!defined('ABSPATH')) die('Access denied.'); ?>
<div class="postbox aio_hidden" data-template="prevent-hotlinks">
<h3 class="hndle"><label for="title"><?php esc_html_e('Prevent hotlinking', 'all-in-one-wp-security-and-firewall'); ?></label></h3>
<div class="inside">
<div class="aio_blue_box">
<?php
echo '<p>'.esc_html__('A hotlink is where someone displays an image on their site which is actually located on your site by using a direct link to the source of the image on your server.', 'all-in-one-wp-security-and-firewall');
echo '<br />'.esc_html__('Due to the fact that the image being displayed on the other person\'s site is coming from your server, this can cause leaking of bandwidth and resources for you because your server has to present this image for the people viewing it on someone elses\'s site.', 'all-in-one-wp-security-and-firewall');
echo '<br />'.esc_html__('This feature will prevent people from directly hotlinking images from your site\'s pages by writing some directives in your .htaccess file.', 'all-in-one-wp-security-and-firewall').'</p>';
?>
</div>
<div id="prevent-hotlinking-badge">
<?php
//Display security info badge
$aiowps_feature_mgr->output_feature_details_badge("prevent-hotlinking");
?>
</div>
<table class="form-table">
<tr valign="top">
<th scope="row"><?php esc_html_e('Prevent image hotlinking', '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 prevent hotlinking to images on your site.', 'all-in-one-wp-security-and-firewall'), 'aiowps_prevent_hotlinking', '1' == $aio_wp_security->configs->get_value('aiowps_prevent_hotlinking')); ?>
</div>
</td>
</tr>
</table>
</div>
</div>