Laonifaron
Occasional Visitor
Thank you. I'll try that.Add www.icloud.com to whitelist if not already added.
Is there any way to delete the current weekly stats?
Thank you. I'll try that.Add www.icloud.com to whitelist if not already added.
Delete?Thank you. I'll try that.
Is there any way to delete the current weekly stats?
No, that is not a built in option. Weekly and current stats always count the current week since last update day.Ah, what I meant was this:
The stats show the current week. There is the option to show them "rs" I believe. What I'd like to do is sort of reset them. So that rs just shows me whatever happened after the last reset.
There's also a manual way to run the update as auto mode.Ah, what I meant was this:
The stats show the current week. There is the option to show them "rs" I believe. What I'd like to do is sort of reset them. So that rs just shows me whatever happened after the last reset.
/tmp/mnt/<your device>/adblocking/addon/update-hosts.add cronjob
You deserve it! Your knowledge and contributions to the community are greatly appreciated.I did it for my thousandth post, so I keep up this sort of tradition and celebrate herewith my 2000th post!
Which will label me as "Part of the furniture" hereabouts. Hmm.
Thank you for your praise.You deserve it! Your knowledge and contributions to the community are greatly appreciated.
..wildcard (*) entries are not possible. Domains with and without the www part are treated separately, e.g, www.domain.com and domain.com need to be added separately.
I have all sorts of special chars in my password, but not the character you're using.Hmmm - my (email) password contains a " - that seems to make AD Solution flip out somewhat....?
I have all sorts of special chars in my password, but not the character you're using.
And I can see that this is interpreted as being the end of the variable value, leaving the rest of it in limbo.
I'll look into it, but for now, just replace/remove it to make it work.
To code it, this would be something like this:I have an idea - however if I am wrong in any way I write, please feel free to correct med
Above I read that wild cards are not possible in host names. And I can understand why since it is a host name based solution.
What I need is something like:
*.cloudfront.net
*.tnctrx.com
Both above creates a very large number of variants that will be hard to follow, since it today is a manual routine to add each and everyone to the current blacklist file...
Now, since the logfile dnsmasq.log seems to include all hosts requested (and I hope I am correct in that), why not add a function that every night/weekend/something goes thru the dnsmasq.log file, and by using wildcard search after patterns like the two I mentioned above, simply adds lines to the blacklist, or maybe a auto_blacklist file (so one knows the difference between wildcard additions and manual additions)?
If this is possible, one will - sooner or later - get the behavior of the wildcard into blacklist file (and of course re-load of that file and so on). It is not perfect, but hey, maybe better than nothing right?
To code it, this would be something like this:
- add wildcard domain(s) to file wildcard_blocklist
- find all queries in dnsmasq log files for first entry in wildcard_blocklist and write it to a temp file
- repeat for every entry in wildcard_blocklist
Then:
- remove duplicates in temp file
- remove whitelist entries in temp file
- add it to auto_blacklist
- remove duplicates from auto_blacklist
- reload the auto_blacklist in dnsmasq
As you can see, this would be doable, but time consuming with a lot of entries in the wildcard_blocklist.
Is this about ad-blocking? Practically all ad domains are blocked by one of the hosts files in use in the blocking file.
And I wonder if it's worth the effort.
I know about the address=/domain.com/0.0.0.0 type of blocking domains and I have had that discussion several times. It's not coming to AB, sorry.Just a thought, have you checked how Pi-Hole handles wildcard blocking? (https://github.com/pi-hole/pi-hole)
I think they do it using a dnsmasq conf file called 03-pihole-wildcard.conf with a syntax like address=/domain.com/0.0.0.0 (IP address of the Pi-hole). Might not be possible with AB-Solution but I run a Pi-Hole at home as well so I thought I'd mention it...
Apr 19 02:04:58 : AB-Solution: file 5 download failed or file is not hosts file, using backup file
Apr 19 02:05:05 : AB-Solution updated blocking file, 69075 domains are now blocked
Apr 19 02:05:09 : AB-Solution counted ads before log files reset (triggered by update-hosts.add)
Apr 19 02:05:09 : AB-Solution blocked 9,299 total 9,299 week 702 new ads
Apr 19 02:05:09 : AB-Solution rotated dnsmasq log files
Welcome To SNBForums
SNBForums is a community for anyone who wants to learn about or discuss the latest in wireless routers, network storage and the ins and outs of building and maintaining a small network.
If you'd like to post a question, simply register and have at it!
While you're at it, please check out SmallNetBuilder for product reviews and our famous Router Charts, Ranker and plenty more!