mattisg / adblock Goto Github PK
View Code? Open in Web Editor NEWBlock ads and trackers system-wide, before a request is even issued.
License: MIT License
Block ads and trackers system-wide, before a request is even issued.
License: MIT License
dnsmasq
could be an interesting way to make adblock available for the whole LAN, including devices that don't allow setting up a hosts file.
There will probably be side effects though, so this needs thinking through.
Please update the files to new one
Or really, just set that setuid
bit.
sw_vers
before calling itdate -j
โ thanks @asciimoo!
I just discovered that one: https://adaway.org/hosts.txt
I don't know if there are new hosts compared to hosts zero but that might be interesting to check.
Do you know any other list?
Alternative: https://www.eff.org/privacybadger
Do you think it would be interesting to extend your script to add a list of domains from the user side.
For lazy guys like me, brew install adblock
would be great :)
After reading the source file, I realized that some hosts are commented:
#<maybe-spy>
#0.0.0.0 auto.search.msn.com # Microsoft uses this server to redirect
# mistyped URLs to search engines. They
# log all such errors.
#0.0.0.0 sitefinder.verisign.com # Verisign has joined the game
#0.0.0.0 sitefinder-idn.verisign.com # of trying to hijack mistyped
# URLs to their site.
# May break iOS Game Center.
#0.0.0.0 s0.2mdn.net # This may interfere with some streaming
# video on sites such as cbc.ca
#0.0.0.0 ad.doubleclick.net # This may interefere with www.sears.com
# and potentially other sites.
0.0.0.0 media.fastclick.net # Likewise, this may interfere with some
0.0.0.0 cdn.fastclick.net # sites.
#0.0.0.0 ebay.doubleclick.net # may interfere with ebay
#0.0.0.0 google-analytics.com # breaks some sites
#0.0.0.0 ssl.google-analytics.com
#0.0.0.0 www.google-analytics.l.google.com
#0.0.0.0 stat.livejournal.com # There are reports that this may mess
# up CSS on livejournal
#0.0.0.0 stats.surfaid.ihost.com # This has been known cause
# problems with NPR.org
#0.0.0.0 www.google-analytics.com # breaks some sites
#0.0.0.0 ads.imeem.com # Seems to interfere with the functioning of imeem.com
#</maybe-spy>
I wonder if it would be possible to activate/deactivate some ranges like that:
sudo adblock --with-range maybe-spy
I'm not sure about the syntax but hopefully you get the point :)
File path documented here.
Should adblock
be retired, and suggest switching to https://github.com/StevenBlack/hosts? It seems to have almost all of the features of this piece of software, and more.
What is missing:
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.