Site Tools


advanced-adblock

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
advanced-adblock [2024/11/27 01:05] – [How Adblock Works] hogwildadvanced-adblock [2026/03/04 19:44] (current) – [Adblock Settings] rs232
Line 34: Line 34:
 You can adjust settings for both caches in the //dnsmasq custom configuration// field in the [[advanced-dhcpdns|DHCP/DNS/TFTP]] menu. You can adjust settings for both caches in the //dnsmasq custom configuration// field in the [[advanced-dhcpdns|DHCP/DNS/TFTP]] menu.
 )) \\ If it finds an entry, the script proceeds to step 5. If not, it proceeds\\ to step 3.\\  \\  )) \\ If it finds an entry, the script proceeds to step 5. If not, it proceeds\\ to step 3.\\  \\ 
-  - Dnsmasq searches its configuration files for a corresponding \\ entry. \\ \\ For adblock, the "dnsmasq.adblock" file holds the (sub)domains \\ to block. If and entry is found, it processes the entry. In the case \\ of adblock, the action is: resolve the domain to "0.0.0.0" or \\ "NXDOMAIN" (non-existent domain). Dnsmasq then proceeds \\ to step 5. \\  \\ +  - Dnsmasq searches its configuration files for a corresponding \\ entry. \\ \\ For adblock, the "dnsmasq.adblock" file holds the (sub)domains \\ to block. If an entry is found, it processes the entry. In the case \\ of adblock, the action is: resolve the domain to "0.0.0.0" or \\ "NXDOMAIN" (non-existent domain). Dnsmasq then proceeds \\ to step 5. \\  \\ 
   - Dnsmasq queries an upstream DNS server for the (sub)domain, directly \\ or via stubby/dnscrypt. The result is a positive lookup, or an \\ "NXDOMAIN". \\  \\    - Dnsmasq queries an upstream DNS server for the (sub)domain, directly \\ or via stubby/dnscrypt. The result is a positive lookup, or an \\ "NXDOMAIN". \\  \\ 
   - The result from these steps is sent to the cache and returned \\ to the requesting client.   - The result from these steps is sent to the cache and returned \\ to the requesting client.
Line 59: Line 59:
 For more on testing, see the Notes and Troubleshooting section of this page. For more on testing, see the Notes and Troubleshooting section of this page.
  
- \\ {{::adblock_enable.png?400}}+{{adblock_enable.png}}
  
 \\ \\
Line 70: Line 70:
  
   * 0:  The script will log only basic messages like start and stop.   * 0:  The script will log only basic messages like start and stop.
-  * 3   (Error). Once you're confident with your setup, this option is sufficient. (Default). +  * 3:  (Error). Once you're confident with your setup, this option is sufficient. (Default). 
-  * 4 +  * 4:  Warning 
-  * 5 +  * 5:  Notification 
-  * 6 +  * 6:  Info 
-  * 7  (Debug level) writes very detailed log information, useful for troubleshooting.+  * 7 (Debug level) writes very detailed log information, useful for troubleshooting.
  
  \\  \\
Line 102: Line 102:
 V1 may crash FreshTomato if it loads lists whose combined information exceeds the router's resource capacity. This can be hard to troubleshoot. Adblock v2 comes with a customizable "//limit//" field. If left empty, FreshTomato will calculate its value automatically. It will also calculate the value automatically if the router was reset to defaults. V1 may crash FreshTomato if it loads lists whose combined information exceeds the router's resource capacity. This can be hard to troubleshoot. Adblock v2 comes with a customizable "//limit//" field. If left empty, FreshTomato will calculate its value automatically. It will also calculate the value automatically if the router was reset to defaults.
  
- \\ +{{adblock_size.png}}
- +
-{{::20230125-184022.png?400|20230125-184022.png}} +
- +
- \\+
  
-When using external storage, the limit is calculated as 10% of physical RAM. When no external storage is found, the limit is calculated as 6.5% of RAM. The limit can manually configured too. However, if the device becomes unstable, please revert to the auto-calculated value.+When using external storage, the limit is calculated as 10% of physical RAM. When no external storage is found, the limit is calculated as 6.5% of RAM. The limit can be manually configured too. However, if the device becomes unstable, please revert to the auto-calculated value.
  
-This is a limit, not a target. It's fine to have a smaller blockfile than the limit. A larger blockfile will result in longer restart times for the dnsmasq service. That's important because DHCP/DNS/TFTP won't function until dnsmasq finishes restarting.+This is a limit, not a target. It's fine to have a smaller blockfile than the limit. A larger blockfile will result in longer restart times for the dnsmasq service. That's important because DHCP/DNS/TFTP won't function until dnsmasq finishes restarting. Since release 2026.2 the limit is now expressed in MB as opposite to Byte of the previous releases. This is entirely a visualization function under the bonnet calculations are still happening in Byte.
  
  \\  \\
Line 165: Line 161:
  \\  \\
  
-**Blacklist URL:**  This shows the location on the Internet where that blacklist can be found.+**Blacklist URL:**  shows the Internet location where that blacklist can be found.
  
-Since release 2023.4, the defaults don't include blocklists, to reduce NVRAM demand. You can add them manually. They are summarized on the official [[adblock_dns_filtering|Adblock (DNS filtering) lists]] page.+Since r2023.4, the defaults don't include blocklists, to reduce NVRAM demand. You can add them manually. They are summarized on the official [[adblock_dns_filtering|Adblock (DNS filtering) lists]] page.
  
  \\  \\
Line 175: Line 171:
  \\  \\
  
-**Description:**  Displays a name (if the publisher used one) or reference for the blacklist in that row.+**Description:**  displays a name (if the publisher used one) or reference for the blacklist in that row.
  
  \\  \\
  
-**Delete:**  If you move your mouse over a row with a blacklist, a red "x" shows at the end of the row. Clicking "x" deletes the row, and permanently deletes the blacklist.+**Delete:** if you move your mouse over a row with a blacklist, a red "x" shows at the end of the row. Clicking "x" deletes the row, and permanently deletes the blacklist.
  
 There's no option to reset these to the original Blacklist URL entries. There's no option to reset these to the original Blacklist URL entries.
Line 194: Line 190:
  \\  \\
  
-**Add:**  Inserts a blank row. There, you can type a new URL from which to download and use an additional Blacklist URL.+**Add:** inserts a blank row. There, you can type a new URL from which to download and use an additional Blacklist URL.
  
 You can add a comment in the Description field. You can add a comment in the Description field.
Line 280: Line 276:
 For example: "/mnt/usb/blacklist.txt". For example: "/mnt/usb/blacklist.txt".
  
-Using external storage is convenient and offers some advantages for maintaining your blocklist. For example, moving a blacklist to another router would be as simple as removing a USB flash drive from one router and inserting it into the other (assuming both were set with the same storage location setting).+Using external storage is convenient and offers some advantages for maintaining your blocklist. For example, moving a blacklist to another router would be as simple as removing a USB flash drive from one router and inserting it into the other (assuming both were set with the same storage location setting). Do not store blacklist-custom mapped files in the same location defined in **Custom path,** as the latter gets wiped periodically.
  
  \\  \\
  
-**Sort a-z ↓** **:**  introduced in release 2024.1, this sorts the field contents alphabetically.\\+**Sort a-z ↓** **:**  introduced in r2024.1, this sorts the field contents alphabetically.\\
  
  \\  \\
Line 320: Line 316:
 For example: "/mnt/usb/whitelist.txt". For example: "/mnt/usb/whitelist.txt".
  
-Using external storage is both convenient and offers certain advantages for maintaining the blocklist. For example, moving a whitelist to another router would be as simple as removing a USB flash drive from one router and inserting it into the other (assuming both were set with the same storage location setting).+Using external storage is both convenient and offers certain advantages for maintaining the blocklist. For example, moving a whitelist to another router would be as simple as removing a USB flash drive from one router and inserting it into the other (assuming both were set with the same storage location setting). Do not store you whitelist mapped file/s under the same location defined in **Custom path** as this latter gets wiped periodically.
  
-\\ **Sort a-z ↓** :  Clicking this sorts the field contents alphabetically.+\\ **Sort a-z ↓** :  clicking this sorts the field contents alphabetically.
  
  \\  \\
advanced-adblock.1732669541.txt.gz · Last modified: by hogwild