Ansuel / tch-nginx-gui

Modified file to apply to a stock technicolor GUI
GNU General Public License v3.0
344 stars 52 forks source link

Enhancement Request: Adblock Extension #379

Open flywire opened 5 years ago

flywire commented 5 years ago

Couple of potential openwrt candidates:

FrancYescO commented 5 years ago

did you tried luci-app-adblock?

flywire commented 5 years ago

No, I've been messing with leds for far too long, I'll try the ones above. Any recommendations? Luci is nice but I'd prefer to use TG799 resources for something else. I was more thinking of the TG800.

btw Luci is not a gui option on TG800.

xes commented 5 years ago

Then.. luci adblock for chaos calmer is really old. Recent versions include many more lists. Maybe it be possible to port some 3.x.x version of that module.

flywire commented 5 years ago

https://whrl.pl/RfW5Gh

I sussed out getting automated ad-blocking working on the DJA0231 ...

Sevio007 commented 5 years ago

Thanks for linking my post Flywire :) I had asked for the enhancement in the "issues" thread previously, but got no response, had no idea there was already a thread about this lol.

Edit: Post any other (better) block lists if you find any...

Use the "spark" list instead, too much being blocked with the "blu" list...

wget -O /etc/dnsmasq.conf.ads "https://raw.githubusercontent.com/EnergizedProtection/block/master/spark/formats/dnsmasq.conf"

FrancYescO commented 5 years ago

Probably more than overloading the dnsmasq conf a solution like using https://adguard.com/ will just avoid having the ram full

Sevio007 commented 5 years ago

Actually using the lighter "spark" list frees up my ram to like 110mb now.

Sevio007 commented 5 years ago

If you want to white list any domains just add it to the regular dnsmasq.conf file in the format:

server=/www.google-analytics.com/202.142.142.142 (The DNS you want it to go through instead, this one being my internet providers DNS).

Suggested white list: https://discourse.pi-hole.net/t/commonly-whitelisted-domains/212

Edit: Ok I need to play around with this, it stuffs a few things up :(

Edit 2: Ensure there are no spaces between domains, need to be entered as separate line items, I just copied and pasted from the white list website I linked, stupid me :-/

Edit 3: https://github.com/anudeepND/whitelist this white list is better and easier to work with, I used excel to make it into the correct format and combined with a formula for exporting.

Sevio007 commented 5 years ago

Steven blacks block list in the correct dnsmasq format. Doesn't use up much ram either...

wget -O- https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts | awk '$1 == "0.0.0.0" { print "address=/"$2"/0.0.0.0/"}' > /etc/dnsmasq.conf.ads

Sevio007 commented 5 years ago

White list excel file:

White list.xlsx

FrancYescO commented 3 years ago

for ARM devices (italian, basically it uses adblock package): https://www.macoers.com/blog/antonio-macolino/adblock-su-dga4130-dga4131-dga4132-homeware-18-rimuovere-pubblicita