2020-09-19 21:27:32 +00:00
<!-- logging tab -->
< div class = " tab-pane fade " id = " adblockcustom " >
< h4 class = " mt-3 " >< ? php echo _ ( " Custom blocklist " ); ?> </h4>
< div class = " row " >
< div class = " col-md-6 " >
< div class = " input-group " >
< input type = " hidden " name = " adblock-custom-enable " value = " 0 " >
2024-10-24 07:06:13 +00:00
< div class = " form-check form-switch " >
< input class = " form-check-input " id = " adblock-custom-enable " type = " checkbox " name = " adblock-custom-enable " value = " 1 " < ? php echo $custom_enabled ? ' checked="checked"' : " " ?> aria-describedby="adblock-description">
< label class = " form-check-label " for = " adblock-custom-enable " >< ? php echo _ ( " Enable custom blocklist " ) ?> </label>
2020-09-19 21:27:32 +00:00
</ div >
</ div >
< p id = " adblock-description " >
< small >< ? php echo _ ( " Define custom hosts to be blocked by entering an IPv4 or IPv6 address followed by any whitespace (spaces or tabs) and the host name. " ) ?> </small>
< small >< ? php echo _ ( " <b>IPv4 example:</b> 0.0.0.0 badhost.com " ) ?> </small>
< div >
< small class = " text-muted " >< ? php echo _ ( " This option adds an <code>addn-hosts</code> directive to the dnsmasq configuration. " ) ?> </small>
</ div >
</ p >
</ div >
</ div >
< div class = " row " >
2024-10-24 07:06:13 +00:00
< div class = " mb-3 col-md-8 " >
2024-10-24 17:30:53 +00:00
< ? php echo '<textarea class="logoutput text-secondary" name="adblock-custom-hosts">' . htmlspecialchars ( $adblock_custom_content , ENT_QUOTES ) . '</textarea>' ; ?>
2020-09-19 21:27:32 +00:00
</ div >
</ div >
</ div ><!-- /. tab - pane -->