adblock-hosts script
Forum rules
General talk about software - if the program is not in the repos, please links to the developer's page or github.
General talk about software - if the program is not in the repos, please links to the developer's page or github.
adblock-hosts script
I will just link to it
http://vsido.org/index.php?topic=757.0
I was using a more complicated setup but have switched to this, I like it simple.
It just updates your hosts file for you to block nasties and adverts.
http://vsido.org/index.php?topic=757.0
I was using a more complicated setup but have switched to this, I like it simple.
It just updates your hosts file for you to block nasties and adverts.
Re: adblock-hosts script
What were you using before? ublock works for me.aaah wrote: I was using a more complicated setup but have switched to this, I like it simple.
-
- Baconator
- Posts: 10253
- Joined: Thu Sep 16, 2010 11:03 am
- Location: Pfälzerwald
- Contact:
Re: adblock-hosts script
Code: Select all
#!/bin/dash
wget -c -O /tmp/hosts.txt http://www.mvps.org/winhelp2002/hosts.txt
sed -i -e 's:127.0.0.1:0.0.0.0:g' -e "s:^.*localhost.$:127.0.0.1 localhost `hostname`:" /tmp/hosts.txt
cat /tmp/hosts.txt | tr -d "\r" > /etc/hosts
rm /tmp/hosts.txt
..gnutella..
Re: adblock-hosts script
Giant host file here, but seriously, ublock origin works great.
- ivanovnegro
- Minister of Truth
- Posts: 5449
- Joined: Wed Oct 17, 2012 11:12 pm
Re: adblock-hosts script
I know we repeat ourselves but really?
uBlock is all you need.
Edit: No wonder. The post is from 2014.
From that dark website you linked.It seems AdBlock is going astray. Here is a simpler and system wide alternative to AdBlock.
uBlock is all you need.
Edit: No wonder. The post is from 2014.
Re: adblock-hosts script
I've heard abt ublock but for some reason decided not to try it, cant remember why. Is it only for certain browsers, will look it up again, in the meantime I guess this post comes under the category, "Epic fail" :)
ok had a quick search abt it, it's a browser addon, I don't realy want another addon although it might not use much memory I don't know. Happy with my hosts file for now, haven't noticed a slowdown.
ok had a quick search abt it, it's a browser addon, I don't realy want another addon although it might not use much memory I don't know. Happy with my hosts file for now, haven't noticed a slowdown.
Last edited by aaah on Sat Mar 12, 2016 7:23 pm, edited 1 time in total.
- ivanovnegro
- Minister of Truth
- Posts: 5449
- Joined: Wed Oct 17, 2012 11:12 pm
Re: adblock-hosts script
You can grab uBlock for all the popular browsers. You see, every griller uses it. I think that means something. :)
Re: adblock-hosts script
Last I checked, uBlock has a smaller memory footprint than AdBlock and all its variants ever had.
- wuxmedia
- Grasshopper
- Posts: 6454
- Joined: Wed Oct 17, 2012 11:32 am
- Location: Back in Blighty
- Contact:
Re: adblock-hosts script
I'm very happy with ublock. I have been since it wa pointed out on here, not that I'm short of RAM or anything. It is embarrassingly good, sometimes at work on a site migration - "where are my ads..."
- huh, what ads... ohh?
- huh, what ads... ohh?
Re: adblock-hosts script
Yeah, uBlock just works great.
Re: adblock-hosts script
getting repetitive here, but yeah, ublock does it for me too.
All statements are true in some sense, false in some sense, meaningless in some sense, true and false in some sense, true and meaningless in some sense, false and meaningless in some sense, and true and false and meaningless in some sense.
-
- Honorary Member
- Posts: 70
- Joined: Fri Feb 28, 2014 5:12 pm
Re: adblock-hosts script
I prefer ad blocking via hosts file. Like OP no slowdown.
Re: adblock-hosts script
AFAIK the hosts file takes a bit time because it's unindexed text. So if I have the choice I install uBlock otherwise I use the hosts file.
- ivanovnegro
- Minister of Truth
- Posts: 5449
- Joined: Wed Oct 17, 2012 11:12 pm
Re: adblock-hosts script
Nice to see some outliers.
Re: adblock-hosts script
If not uBlock, I go with this: http://surf.suckless.org/files/adblock-hosts
Re: adblock-hosts script
^ Thanks, a nice catch for 'stubborn' browsers I guess :)