Adblock Plugin

Want to share your OpenWrt / Gargoyle knowledge? Implemented a new feature? Let us know here.

Moderator: Moderators

FishHead
Posts: 26
Joined: Sat Jul 25, 2015 6:19 am

Re: Adblock Plugin

Postby FishHead » Mon May 07, 2018 6:02 pm

Legend! Thanks for that quick response.

d3fz wrote:I'm currently using a consolidated hosts file from StevenBlack.


Is there any particular reason you use that instead of the default?

Lantis
Moderator
Posts: 5012
Joined: Mon Jan 05, 2015 5:33 am
Location: Australia

Re: Adblock Plugin

Postby Lantis » Mon May 07, 2018 6:16 pm

Just as a response to that article, I don’t personally receive any monetary gain from this plugin (or any of my activities on this site).
I can’t speak to how the upstream block lists are maintained, but if you believe they are no longer the best sources I am happy to change them. The plugin is due for a bit of an overhaul anyway.
Routers: Various ar71xx/mvebu/x86-64
http://lantisproject.com/downloads/gargoyle_ispyisail.php for the latest releases

d3fz
Posts: 267
Joined: Sun Aug 28, 2016 7:34 pm

Re: Adblock Plugin

Postby d3fz » Mon May 07, 2018 7:06 pm

FishHead wrote:Legend! Thanks for that quick response.

d3fz wrote:I'm currently using a consolidated hosts file from StevenBlack.


Is there any particular reason you use that instead of the default?

For pure testing purposes, I've also tried other several hosts sources (smaller ones, but combined) in the past, and thought I'd might try this bigger one. The router seems to be handling it just fine so far.
TP-Link Archer C7 v2 - Gargoyle 1.10.X
TP-Link WR842ND v2 - Gargoyle 1.10.X
TP-Link RE450 AC v2 - Stock FW 1.0.4
TP-Link WA850RE v1.2 - LEDE 17.01.1

Tired of Chrome? Try Vivaldi - an advanced browser built for power users

IanBlakeley
Posts: 26
Joined: Mon Nov 27, 2017 6:10 am
Location: Penang, Malaysia
Contact:

Re: Adblock Plugin

Postby IanBlakeley » Sat May 12, 2018 11:58 pm

I'd noticed when running the Adblock script from CLI that one of the wget is failing. A bit of chasing and it is the second one

Code: Select all

wget -qO- "http://adaway.org/hosts.txt"|awk -v r="$ENDPOINT_IP4" '{sub(/^127.0.0.1/, r)} $0 ~ "^"r' >> /tmp/block.build.list


I am seeing this response

Code: Select all

wget: error getting response: Connection reset by peer


Exactly the same command run on my desktop terminal runs fine, tried with https and get the same response.

Lantis
Moderator
Posts: 5012
Joined: Mon Jan 05, 2015 5:33 am
Location: Australia

Re: Adblock Plugin

Postby Lantis » Sun May 13, 2018 12:21 am

Yes I believe they are pushing their traffic to HTTPS but by default Gargoyle wget doesn’t support SSL.
I need to fix this.
Routers: Various ar71xx/mvebu/x86-64
http://lantisproject.com/downloads/gargoyle_ispyisail.php for the latest releases

qzzipc
Posts: 7
Joined: Tue Feb 19, 2019 1:18 pm

Re: Adblock Plugin

Postby qzzipc » Sat Feb 23, 2019 12:08 pm

USE --no-check-certificate !!!! :D:D:D

wget -qO- --no-check-certificate "https://github. com/StevenBlack/hosts/raw/master/hosts" | awk -v r="$ENDPOINT_IP4" '{sub(/^0.0.0.0/, r)} $0 ~ "^"r' > /tmp/block.build.list

lollapalooza
Posts: 65
Joined: Mon Jun 09, 2014 12:53 pm

Re: Adblock Plugin

Postby lollapalooza » Tue Jul 02, 2019 5:16 pm

Does this plugin save a log file?
Can I see the list of blocked URLs, with date and time?

fifonik
Posts: 96
Joined: Fri Dec 02, 2016 3:52 am
Location: Brisbane, AU

Re: Adblock Plugin

Postby fifonik » Tue Jul 02, 2019 5:46 pm

I do not think so. The log would be massive.

lollapalooza
Posts: 65
Joined: Mon Jun 09, 2014 12:53 pm

Re: Adblock Plugin

Postby lollapalooza » Wed Jul 03, 2019 2:13 am

Well... it could at least keep the last 12/24 hours.
Or just keep the log size constant.

Lantis
Moderator
Posts: 5012
Joined: Mon Jan 05, 2015 5:33 am
Location: Australia

Re: Adblock Plugin

Postby Lantis » Wed Jul 03, 2019 4:13 am

There is no mechanism for logging this as the requests are blocked at the dnsmasq level.
Routers: Various ar71xx/mvebu/x86-64
http://lantisproject.com/downloads/gargoyle_ispyisail.php for the latest releases


Return to “Show / Tell / Contribute”

Who is online

Users browsing this forum: No registered users and 2 guests