Adblock Plugin

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

Moderator: Moderators

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

Re: Adblock Plugin

Post by Lantis »

its completely normal to get 1 of those errors the first time. subsequent loads should not have that problem. its about how it is cached into the browser.
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.

arejaytee
Posts: 17
Joined: Tue Jan 07, 2014 4:59 am

Re: Adblock Plugin

Post by arejaytee »

Lantis wrote:Manually navigate to http://192.168.1.1/ablock.sh

If that works, we can deal with that issue later. The primary issue is whether or not the plugin itself works properly.
On Gargoyle 1.8.0, and no going directly to adblock.sh does not work get redirected to overview.sh

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

Re: Adblock Plugin

Post by Lantis »

then installation didnt go fine. on 1.8.0 don't upgrade past 1.0.4
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.

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

Re: Adblock Plugin

Post by Lantis »

I've now lost track of who i'm dealing with and what problems you're having.
Unless you're experiencing an issue related to an external plugin_root, please reinstall the plugin.
Note, that uninstallation of plugins is kind of buggy, and that can cause additional issues that can be resolved by a reflash.
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.

n8b
Posts: 70
Joined: Wed Sep 16, 2015 1:20 pm
Location: Denmark

Re: Adblock Plugin

Post by n8b »

I got it working by using another browser (But I don't understand why).

What is needed to be cleared in the original browser?
And should it be stated somewhere to free your time? ;)

keychi
Posts: 16
Joined: Tue Sep 11, 2012 3:19 pm
Location: POLAND
Contact:

Re: Adblock Plugin

Post by keychi »

n8b wrote:I got it working by using another browser (But I don't understand why).


I confirm, when I turn the option on the browser opera - include additional options

when you do it on a chrome, a website is like not configured (empty)

However, the problem files on /../sda1/ is still (when install script)

i must manually move them to the correct folder

Image

It would have been nice to make it possible to import other links to adblock, because I have a list of my country and I can not hook -I will have to manually edit


To another users ( if you want be max adblock sites) if you have USB Drive, and /public_root/adblock on this drive, i have list from my country and another banned sites, you must edit runadblock.sh and add two lines (then file of hosts have 3MB - oryginally on list author have 0,3MB)

Code: Select all

	logger -t ADBLOCK Retrieving ad lists from remote source
	wget -qO- "http://www.mvps.org/winhelp2002/hosts.txt"| awk -v r="$ENDPOINT_IP4" '{sub(/^0.0.0.0/, r)} $0 ~ "^"r' > /tmp/block.build.list
	wget -qO- "http://adaway.org/hosts.txt"|awk -v r="$ENDPOINT_IP4" '{sub(/^127.0.0.1/, r)} $0 ~ "^"r' >> /tmp/block.build.list
enter into code

Code: Select all

    	wget -qO- "http://jazz.tvtom.pl/download/hosts"|awk -v r="$ENDPOINT_IP4" '{sub(/^127.0.0.1/, r)} $0 ~ "^"r' >> /tmp/block.build.list
        	wget -qO- "http://jazz.tvtom.pl/download/hosts.deny"|awk -v r="$ENDPOINT_IP4" '{sub(/^127.0.0.1/, r)} $0 ~ "^"r' >> /tmp/block.build.list
TP-LINK WDR-4300 (main router) - 1.9.2 Gargoyle
TP-LINK WR743ND in garage - 1.9.2 gargoyle
And many Chinese LB-LINK Repeater's another location

keychi
Posts: 16
Joined: Tue Sep 11, 2012 3:19 pm
Location: POLAND
Contact:

Re: Adblock Plugin

Post by keychi »

author, your script from time to time erases the file block.hosts
TP-LINK WDR-4300 (main router) - 1.9.2 Gargoyle
TP-LINK WR743ND in garage - 1.9.2 gargoyle
And many Chinese LB-LINK Repeater's another location

Daeron
Posts: 28
Joined: Mon Oct 31, 2016 5:30 am

Re: Adblock Plugin

Post by Daeron »

Thanks for the great plugin Lantis!

I have a feature request however. Any chance a newer version would allow us to edit the sources from which the plugin gets its blocklist?

So for example, one could subscribe to a localized hosts file which contains additional ad servers based on language/geographical location of the user which would otherwise not be included in the currently used sources.

It would also mean that one could hone the plugin to the capabilities of his/her router. Presumably more RAM = can handle larger lists and so on.

I realize there is probably a way to edit the source file on the router itself or edit the files beforehand and compile an alternate version of the plugin yourself, but I'd find surfacing that in the GUI a much more elegant solution that perhaps others would deem useful as well.

arejaytee
Posts: 17
Joined: Tue Jan 07, 2014 4:59 am

Re: Adblock Plugin

Post by arejaytee »

After a update previously Adblock stopped working for me, tonight I have installed the latest ispy build (very nice btw) and its still not working,

In system logs I have the below,

Code: Select all

Sun Jan 29 21:43:51 2017 daemon.err uhttpd[3507]: sh: write error: Broken pipe
Sun Jan 29 21:44:48 2017 daemon.err uhttpd[3507]: cat: can't open '/plugin_root/adblock/block.hosts': No such file or directory
Sun Jan 29 21:44:49 2017 user.notice ADBLOCK: Modifying black/white lists from GUI
Sun Jan 29 21:44:49 2017 daemon.err uhttpd[3507]: sh: can't open '/plugin_root/adblock/runadblock.sh'
Sun Jan 29 21:44:49 2017 daemon.err uhttpd[3507]: cat: can't open '/plugin_root/adblock/block.hosts': No such file or directory
Sun Jan 29 21:44:51 2017 daemon.info hostapd: wlan0: STA 70:de:e2:c6:ef:cb WPA: group key handshake completed (RSN)
Sun Jan 29 21:44:51 2017 daemon.info hostapd: wlan0: STA 28:cf:da:f0:19:38 WPA: group key handshake completed (RSN)
Sun Jan 29 21:44:51 2017 daemon.info hostapd: wlan0: STA 94:fe:22:c8:75:ea WPA: group key handshake completed (RSN)
Sun Jan 29 21:44:52 2017 daemon.info hostapd: wlan0: STA fc:e9:98:a7:dc:32 WPA: group key handshake completed (RSN)
Sun Jan 29 21:44:53 2017 user.notice ADBLOCK: Modifying black/white lists from GUI
Sun Jan 29 21:44:53 2017 daemon.err uhttpd[3507]: sh: can't open '/plugin_root/adblock/runadblock.sh'
Sun Jan 29 21:44:53 2017 daemon.err uhttpd[3507]: cat: can't open '/plugin_root/adblock/block.hosts': No such file or directory
Sun Jan 29 21:44:54 2017 daemon.info hostapd: wlan0: STA 60:d8:19:1b:24:45 WPA: group key handshake completed (RSN)
Sun Jan 29 21:47:05 2017 daemon.err uhttpd[3507]: sh: can't open '/plugin_root/adblock/runadblock.sh'
Sun Jan 29 21:47:34 2017 daemon.err uhttpd[3507]: ln: /plugin_root/etc: Operation not permitted
Sun Jan 29 21:47:34 2017 daemon.err uhttpd[3507]: ln: /plugin_root/tmp: Operation not permitted
Sun Jan 29 21:47:34 2017 daemon.err uhttpd[3507]: ln: /plugin_root/var: Operation not permitted
Sun Jan 29 21:48:02 2017 daemon.err uhttpd[3507]: cat: can't open '/plugin_root/adblock/block.hosts': No such file or directory
Sun Jan 29 21:48:05 2017 user.notice ADBLOCK: Modifying black/white lists from GUI
Sun Jan 29 21:48:05 2017 daemon.err uhttpd[3507]: sh: can't open '/plugin_root/adblock/runadblock.sh'
Sun Jan 29 21:48:05 2017 daemon.err uhttpd[3507]: cat: can't open '/plugin_root/adblock/block.hosts': No such file or directory
Any thoughts?

EDIT: Plugins are using USB storage, I uninstalled and reinstalled a few times to make sure it was pointing to the drive but same errors.

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

Re: Adblock Plugin

Post by Lantis »

What version have you installed?
It doesn't look like the latest based on the errors provided.
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