I use this method but I use a static file created the first time implemented and it works great in the most part.
However my other half likes going on this site:
http://www.digitalspy.co.uk/
which wont work at all as it is an ad fest, I have removed all of the digital spy references but none of the links work on the site unless ad blocking is disabled.
Any suggestions on how to get it to work?
Also, is there a 'cut down' version of the domain file anywhere which isn't as comprehensive and maybbe only covers core ad domains?
Strange, it's working perfectly for me. Can you copy one of the links that doesn't work and post it here so we can test it?However my other half likes going on this site:
http://www.digitalspy.co.uk/
which wont work at all as it is an ad fest, I have removed all of the digital spy references but none of the links work on the site unless ad blocking is disabled.
Strange, it's working perfectly for me. Can you copy one of the links that doesn't work and post it here so we can test it?
bilboSNB: Do you have the same behaviour? What browser are you using?The links when taken alone do work.
But clicking on any link from the homepage - http://www.digitalspy.co.uk/ results in no action.
The only way to get the links to work is either copying them into the address bar or right clicking in Chrome and choosing "open link in new tab".
EDIT : interestingly I just tried using Firefox instead of my default browser Chrome, and the links work perfectly. As do they in IE. But Safari on my iPad and iPhone when using my home wi-fi also results in the links not working. When used via 3G though the links work on both.
I also tested this with Safari on a Mac and had the same issue. I reviewed the console log and noticed a bunch of javascript errors. I went and disabled javascript, reloaded the page, and all the links worked.
I use this method but I use a static file created the first time implemented and it works great in the most part.
ptr-record=0.0.0.0.in-addr.arpa,0.0.0.0
address=/0.0.0.0/0.0.0.0
addn-hosts=/tmp/mnt/sda1/hosts.clean
ptr-record=0.0.0.0.in-addr.arpa,0.0.0.0
Thanks for such a useful thread!
One question, I've found the hosts used to be lacking a bit. However, I can't seem to find any more host lists with 0.0.0.0 (Everyone seems to love 127.0.0.1).. Is there any way to update this to use a site with 127.0.0.1 instead of 0.0.0.0? Or would it be possible to use add a local hosts_blacklist.txt (/tmp/mnt/sda/hosts_blacklist.txt) into the mix for merging with the others?
Thanks for any help! Learning so much from all this
addn-hosts=/tmp/mnt/sda1/hosts_blacklist.txt
My RT-AC66U runs at about 30% with a blocked hosts file of 690 KB.My N16 has been operating using about 98% of its memory, leaving only 2 mb free. I recently noticed that my hosts.clean file became 0 bytes and the ad blocking wasn't working, so something in my update isn't working right.
But, I also noted that my memory usage was down to around 70%. Am I right in assuming that these blocked addresses are read into memory? I might want to prune this file down, or use an external blocker.
wget -qO- "http://pgl.yoyo.org/adservers/serverlist.php?hostformat=hosts&showintro=0&startdate[day]=&startdate[month]=&startdate[year]=&mimetype=plaintext&useip=0.0.0.0" | grep -w ^0.0.0.0 | sed $'s/\r$//' | sort -u > /tmp/mnt/sda1/hosts.clean
Create or add to /jffs/configs/dnsmasq.conf.add
Code:address=/0.0.0.0/0.0.0.0 addn-hosts=/tmp/mnt/sda1/hosts.clean
This was answered here: http://www.snbforums.com/threads/adblocking-with-combined-hosts-file.15309/page-4#post-119703Why do we need to specify the address=/0.0.0.0/0.0.0.0 line?
This works GREAT....
Or is there a better way that doesn't make such a large file?
I am still waiting for my ISP to enable IPv6. Until then there's no use for me to look into that. I would not be able to test it.
Mar 16 13:59:41 dnsmasq[746]: read /tmp/mnt/ASUS/hosts/hosts.clean - 49374 addresses
Thread starter | Title | Forum | Replies | Date |
---|---|---|---|---|
D | How to restrict VPN network access to certain IP Range or Hosts for specific VPN client | Asuswrt-Merlin | 8 |
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!