2020-03-27 22:39:05 +00:00
<!-- blocklist settings tab -->
< div class = " tab-pane active " id = " adblocklistsettings " >
< div class = " row " >
< div class = " col-md-6 " >
< h4 class = " mt-3 " >< ? php echo _ ( " Blocklist settings " ); ?> </h4>
< div class = " input-group " >
< input type = " hidden " name = " adblock-enable " value = " 0 " >
2024-10-24 07:06:13 +00:00
< div class = " form-check form-switch " >
< input class = " form-check-input " id = " adblock-enable " type = " checkbox " name = " adblock-enable " value = " 1 " < ? php echo $enabled ? ' checked="checked"' : " " ?> aria-describedby="adblock-description">
< label class = " form-check-label " for = " adblock-enable " >< ? php echo _ ( " Enable blocklists " ) ?> </label>
2020-03-27 22:39:05 +00:00
</ div >
< p id = " adblock-description " >
< small >< ? php echo _ ( " Enable this option if you want RaspAP to <b>block DNS requests for ads, tracking and other virtual garbage</b>. Blocklists are gathered from multiple, actively maintained sources and automatically updated, cleaned, optimized and moderated on a daily basis. " ) ?> </small>
2020-04-01 09:09:52 +00:00
< div >
2020-03-27 22:39:05 +00:00
< small class = " text-muted " >< ? php echo _ ( " This option adds <code>conf-file</code> and <code>addn-hosts</code> to the dnsmasq configuration. " ) ?> </small>
</ div >
</ p >
</ div >
< div class = " row " >
2020-04-01 09:09:52 +00:00
< div class = " col-md-12 " >
< p id = " blocklist-updated " >
2024-10-24 07:06:13 +00:00
< div >< small >< ? php echo _ ( " Hostnames blocklist last updated " ) ?> : <span class="fw-bold" id="blocklist-hostnames">
2020-04-02 07:12:59 +00:00
< ? php echo blocklistUpdated ( 'hostnames.txt' ) ?> </span></small></div>
2024-10-24 07:06:13 +00:00
< div >< small >< ? php echo _ ( " Domains blocklist last updated " ) ?> : <span class="fw-bold" id="blocklist-domains">
2020-04-02 07:12:59 +00:00
< ? php echo blocklistUpdated ( 'domains.txt' ) ?> </b></small></div>
2020-04-01 09:09:52 +00:00
</ p >
< div class = " input-group col-md-12 mb-4 " >
2024-10-24 07:06:13 +00:00
< select class = " form-select form-select-sm " id = " cbxblocklist " onchange = " clearBlocklistStatus() " >
2020-04-01 09:09:52 +00:00
< option value = " " >< ? php echo _ ( " Choose a blocklist provider " ) ?> </option>
< option disabled = " disabled " ></ option >
< ? php echo optionsForSelect ( blocklistProviders ()) ?>
</ select >
< div class = " input-group-append " >
2024-10-24 07:06:13 +00:00
< button class = " btn btn-sm btn-outline-secondary rounded-end " type = " button " onclick = " updateBlocklist() " >< ? php echo _ ( " Update now " ); ?> </button>
< span id = " cbxblocklist-status " class = " input-group-addon check-hidden ms-2 mt-1 " >< i class = " fas fa-check " ></ i ></ span >
2020-04-01 09:09:52 +00:00
</ div >
2020-03-27 22:39:05 +00:00
</ div >
</ div >
</ div >
</ div >
</ div ><!-- /. row -->
</ div ><!-- /. tab - pane | advanded tab -->