What's new

[Beta] Adblock WCHFA (Closed, use AB-Solution thread).

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

@ thelonelycoder
Please Consider adding a Command/variable to update the whitelist without running the update-hosts.sh

currently i use another script to achive that.

Code:
# set directory
dir=/tmp/mnt/asus32/adblocking
# remove whitelisted entries in temp and write final file, remove temp file
cp $dir/hosts-adblock $dir/temp
cat $dir/temp | fgrep -vf $dir/whitelist.txt > $dir/hosts-adblock
rm $dir/temp

#restart dnsmasq to apply changes
sleep 1
service restart_dnsmasq


Many thanks for your great work.
 
@faria That is planned for a later release.
 
livepassdl.conviva.com
cbsi.com
secure-us.imrworldwide.com
livepass.conviva.com

those above ,tested working, Add them to the white list and rerun update-hosts.sh

In my experience for some reason when you add a domain with double full stops like dw.cbsi.com to the whitelist the whitelist filter no longer works.

These still did not allow me to watch the shows. The only way I have been able to successfully watch the shows is if I remove the AdBlocker scripts completely.

Also, what do you mean by "double full stops?"
 
I get this error trying to access my USB through the router:
/dev/sdc1: Permission denied

I have no idea why the thrumbdrive reads as sdc1 instead of sda1...
I'm using a Mac, and have reformtated the thumb to extfs using paragon.
 
livepassdl.conviva.com
cbsi.com
secure-us.imrworldwide.com
livepass.conviva.com

those above ,tested working, Add them to the white list and rerun update-hosts.sh

In my experience for some reason when you add a domain with double full stops like dw.cbsi.com to the whitelist the whitelist filter no longer works.
This appears to be a contradiction. All of the default whitelist domains contain double full stops. Three of the four domains you've suggested also contain double full stops. You say that you tested it and it's working, but then you say double full stops make it stop working. :confused:
 
This appears to be a contradiction. All of the default whitelist domains contain double full stops. Three of the four domains you've suggested also contain double full stops. You say that you tested it and it's working, but then you say double full stops make it stop working. :confused:
Sorry, I meant some domains not all, i did read what i wrote properly, i noticed this a while ago with the advance setup too , maybe its just me.
And yes it with those entries in the white list cbs works.
 
These still did not allow me to watch the shows. The only way I have been able to successfully watch the shows is if I remove the AdBlocker scripts completely.

Also, what do you mean by "double full stops?"
If that's the case then something is wrong with your whitelist file or something is preventing the removal of those domains from the downloaded hosts.

In this case it was dw.cbsi.com that was the problem, once i changed to cbsi.com it started working.
 
These still did not allow me to watch the shows. The only way I have been able to successfully watch the shows is if I remove the AdBlocker scripts completely.

Also, what do you mean by "double full stops?"
dw dot cbsi dot com = dw.cbsi.com

If still does not work then there is something wrong with your whitelist file or the white lists entries aren't being removed from the downloaded hosts.
 
Update and clarification
Upon rechecking the scripts etc i found that i was using my old adblock script based on the original advanced mode (my bad) , cbs works as stated before.

Now running wchfa 0.9.5_beta with the same hosts and whitelist cbs does not work unless i delete the dnsmasq.postconf from jffs/scripts and add the entries to jffs/configs dnsmasq.conf.add

dnsmasq.conf.add entries below...
address=/0.0.0.0/0.0.0.0
ptr-record=0.0.0.0.in-addr.arpa,0.0.0.0
addn-hosts=/tmp/mnt/asus32/adblocking/hosts-adblock
addn-hosts=/tmp/mnt/asus32/adblocking/blacklist.txt

My head hurts:D
 
I reinstalled 0.9.5.2beta but this time I did not use the advanced (larger) data file and cbs works without adding any entries into the whitelist file. I'm making progress... :)
 
Update and clarification
Upon rechecking the scripts etc i found that i was using my old adblock script based on the original advanced mode (my bad) , cbs works as stated before.

Now running wchfa 0.9.5_beta with the same hosts and whitelist cbs does not work unless i delete the dnsmasq.postconf from jffs/scripts and add the entries to jffs/configs dnsmasq.conf.add

dnsmasq.conf.add entries below...
address=/0.0.0.0/0.0.0.0
ptr-record=0.0.0.0.in-addr.arpa,0.0.0.0
addn-hosts=/tmp/mnt/asus32/adblocking/hosts-adblock
addn-hosts=/tmp/mnt/asus32/adblocking/blacklist.txt

My head hurts:D
You must have had installed the manual method in a different way. The setup script tries to find a manual install and warn during setup.
Those entires in the dnsmasq.conf.add AND dnsmasq.postconf will both be added to /etc/dnsmasq.conf.
 
Just installed 0.9.5.2 beta in advanced mode with logging. It installed successfully but I still got all ads in. Tested with my windows PC and my android phone. What can I check?
 
Just installed 0.9.5.2 beta in advanced mode with logging. It installed successfully but I still got all ads in. Tested with my windows PC and my android phone. What can I check?
Clear DNS Cache in Windows: Enter ipconfig/flushdns in a command prompt.
Clear your browsers cache.
Hit CTRL F5 to refresh Browser window.
Check what your dnsmasq log says. It should say something like:
/tmp/mnt/sda1/adblocking/hosts-adblock watson.telemetry.microsoft.com is 0.0.0.0
The 0.0.0.0 part is important. It says that domain is blocked.
 
Just tried.
I can't surf that site. But I can't see nothing inside my log.
This is a tail of it:
Feb 6 16:17:01 dnsmasq-dhcp[1464]: read /etc/ethers - 4 addresses
Feb 6 16:17:01 dnsmasq[1464]: using nameserver 8.8.8.8#53
Feb 6 16:17:01 dnsmasq[1464]: using nameserver 8.8.4.4#53
Feb 6 16:17:02 dnsmasq[1464]: read /etc/hosts - 5 addresses
Feb 6 16:17:02 dnsmasq[1464]: read /tmp/mnt/data/adblocking/blacklist.txt - 0 addresses

Surely I did something wrong...
 
Last edited:
@GDT The blacklist file is by default empty. This is where you add your own blacklisted domains that are not blocked by the hosts-adblock file, which is the combined hosts file. This file has a size of either 11 MB or 700 KB, depending on what you have chosen to use during install.
Have a look at the install log in adblocking/logs/AdBlock-0.9.5.2_beta-setup.log for any clues.
Right after this line:
read /tmp/mnt/data/adblocking/blacklist.txt - 0 addresses
you should see this:
read /tmp/mnt/data/adblocking/hosts-adblock - (a lot of adresses)
 
I've got hosts-adblock file and it's about 11mb. But it's like adblocking is not active. I looked at install log and all seems to be ok.
 
Same here. Still seen ads.
In the router Settings in LAN/DHCP Server, do you have DNS Server 1 and 2 both set as empty? They NEED to be empty.
If you want to set (for example) google as the DNS Server, ONLY set it in WAN Settings (DNS Server1 and DNS Server2).
This is important.
 
Announcement: The upcoming 0.9.6_beta will have a set of additional tests and checks, to try the best it can to make sure Adblocking works right.
It does work for most right away, so I hope ;-).
 

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!

Staff online

Top