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

Post by FishHead »

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: 6735
Joined: Mon Jan 05, 2015 5:33 am
Location: Australia

Re: Adblock Plugin

Post by Lantis »

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.
http://lantisproject.com/downloads/gargoyle_ispyisail.php for the latest releases
Please be respectful when posting. I do this in my free time on a volunteer basis.

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

Re: Adblock Plugin

Post by d3fz »

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.12.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

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

Re: Adblock Plugin

Post by IanBlakeley »

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: 6735
Joined: Mon Jan 05, 2015 5:33 am
Location: Australia

Re: Adblock Plugin

Post by Lantis »

Yes I believe they are pushing their traffic to HTTPS but by default Gargoyle wget doesn’t support SSL.
I need to fix this.
http://lantisproject.com/downloads/gargoyle_ispyisail.php for the latest releases
Please be respectful when posting. I do this in my free time on a volunteer basis.

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

Re: Adblock Plugin

Post by qzzipc »

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: 122
Joined: Mon Jun 09, 2014 12:53 pm

Re: Adblock Plugin

Post by lollapalooza »

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

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

Re: Adblock Plugin

Post by fifonik »

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

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

Re: Adblock Plugin

Post by lollapalooza »

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

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

Re: Adblock Plugin

Post by Lantis »

There is no mechanism for logging this as the requests are blocked at the dnsmasq level.
http://lantisproject.com/downloads/gargoyle_ispyisail.php for the latest releases
Please be respectful when posting. I do this in my free time on a volunteer basis.

Post Reply