Sample Header Ad - 728x90

Unix & Linux Stack Exchange

Q&A for users of Linux, FreeBSD and other Unix-like operating systems

Latest Questions

0 votes
1 answers
292 views
Chromium: how to block promoted content advertisement on Twitter (uBlock Origin/uMatrix)
Using Debian 10 with Chromium along with `uBlock Origin` and `uMatrix` extensions. On Twitter, advertisement as promoted content are not blocked, How can we block such content with `uBlock/uMatrix` or any other underlying Linux's solution?
Using Debian 10 with Chromium along with uBlock Origin and uMatrix extensions. On Twitter, advertisement as promoted content are not blocked, How can we block such content with uBlock/uMatrix or any other underlying Linux's solution?
Martin Vegter (598 rep)
Jun 18, 2020, 07:52 AM • Last activity: Jun 20, 2020, 03:04 AM
1 votes
1 answers
2948 views
adblocking proxy
I'm a user of several modern browsers and I don't like spam. So I install adblockers, like [ublock origin](https://addons.mozilla.org/ca/firefox/addon/ublock-origin/?src=search). But you have to install extensions in every browser you have and the plugins are not for term browsers (like [links](http...
I'm a user of several modern browsers and I don't like spam. So I install adblockers, like [ublock origin](https://addons.mozilla.org/ca/firefox/addon/ublock-origin/?src=search) . But you have to install extensions in every browser you have and the plugins are not for term browsers (like [links](https://en.wikipedia.org/wiki/Links_%28web_browser%29)) . So the question is if is there any software outhere acting as central adblocker I thought in adblocking proxy. Ideally, it could be use EasyList or so for blocking ads, but it could be use DNS blocking directly and spamassassin or some AI for determining heuristically what is and what is not advertising. Ideally, I would like to configure to remove all ads and add some text according to user preferences: weather information, MOTD (message of the day), etc. If there is no such software is it difficult to program in any programming language?
somenxavier (170 rep)
Jun 5, 2019, 06:46 PM • Last activity: Jun 6, 2019, 09:12 AM
5 votes
1 answers
11895 views
DNS server for blacklisting tons of domains and also some TLDs
I'm trying to setup a basic DNS server for my lan that is able to put in a nullroute or 127.0.0.1 lots of domains. The domains I want to block come from a list but I also want to block some domains using regular expressions (this is a must for my setup). My candidate software for doing this business...
I'm trying to setup a basic DNS server for my lan that is able to put in a nullroute or 127.0.0.1 lots of domains. The domains I want to block come from a list but I also want to block some domains using regular expressions (this is a must for my setup). My candidate software for doing this business seemed to be Unbound, a recursive caching secure DNS server with various useful functions. **However Unbound doesn't seem to support any regular expression!** Also, Unbound is very picky when it comes for zones repetitions. My domain list is builded from many mixed sources so I can have many repetitions that I filter out with some scripts but also domains in list like: **aaah.very.this.com** but also **very.this.com** This lead Unbound scream for errors because there is a zone repetition. While this is a minor issue, that I can remove by cleaning even better the domain list, my main issue is the lack of regexp for handling the domain requests. Can i somehow block all *.com or *.biz or stuff like that? [\w\.\-]+.com A 127.0.0.1 [\w\.\-]+.com AAAA ::1 My regex is an example, i could go with more complex ones... BONUS ----- Can I instead do something even more nasty? Have everything pointing to nullroute or 127.0.0.1 and ONLY a whitelist of domains get resolved by being forwarded to an external DNS ? If replying please do not forget this extra question as I am very interesting in knowing the answer. **What i can go for? Bind9, dnsmasq, unbound, pdns-recursor...**
user3450548 (3094 rep)
Mar 8, 2016, 10:37 AM • Last activity: Mar 1, 2018, 01:28 PM
3 votes
2 answers
5858 views
How to block hostnames with wildcards or Regex?
Currently I uses a big `/etc/hosts` to block unwanted hostnames. But the file is getting bigger and bigger closing in on 700000 entries. The are many similar entries so I would like to use wildcards like `*.co.kr` because I don't speak any Korean. Also hostnames that start with a digit or are longer...
Currently I uses a big /etc/hosts to block unwanted hostnames. But the file is getting bigger and bigger closing in on 700000 entries. The are many similar entries so I would like to use wildcards like *.co.kr because I don't speak any Korean. Also hostnames that start with a digit or are longer than 64 characters are likely candiates I want to block. AFAIK /etc/hosts does not provide that functionality. I think some kind of DNS deamon is required. Any ideas? Edit: I chose the Korean tld just as a example. My /etc/hosts is getting bigger and bigger and harder to maintain. Most of the hostnames in there could be reduced to a small set of rules instead.
aggsol (95 rep)
Aug 8, 2017, 06:56 AM • Last activity: Aug 9, 2017, 09:50 PM
2 votes
0 answers
174 views
The correct way of implementing adblocking with uzbl?
I though about running some proxy on localhost, but will I be able to filter https? I've tried to use scripts from wiki, but they are not seem to work. Another idea is to implement adblocking using /etc/hosts It is workable and not too severe? Won't it cripple useful features?
I though about running some proxy on localhost, but will I be able to filter https? I've tried to use scripts from wiki, but they are not seem to work. Another idea is to implement adblocking using /etc/hosts It is workable and not too severe? Won't it cripple useful features?
Moonwalker (333 rep)
Dec 11, 2016, 04:41 PM
1 votes
2 answers
407 views
How to fail fast with iptables?
Inspired by the [Pi-hole](http://jacobsalmela.com/block-millions-ads-network-wide-with-a-raspberry-pi-hole-2-0/) I set up my own one. What it does: 1. The Pi-hole is configured as a dedicated IP in my local net on a virtual adapter of Raspberry Pi. 2. Get list of known spam / phishing / ad server na...
Inspired by the [Pi-hole](http://jacobsalmela.com/block-millions-ads-network-wide-with-a-raspberry-pi-hole-2-0/) I set up my own one. What it does: 1. The Pi-hole is configured as a dedicated IP in my local net on a virtual adapter of Raspberry Pi. 2. Get list of known spam / phishing / ad server names. 3. Use dnsmasq as a local DNS to resolve these server names to a local IP (aka the Pi-hole) 4. On the Pi-hole lighttpd serves empty html pages and pixel images instead of the phishing sites or ads 5. All browsers in my net on desktops / smartphones / tablets alike get rid of a unwanted content This approach has the benefit that it does not impact things like VirtualHosts on the same (original) target IP. It just blocks the hosts by name. The disadvantage is that it works only at home... This setup works fine for 99% of the roughly 1,6 million sites but some sites use https or different ports such 8080 to server their content. As the empty content is just served on port 80 theses sites take forever until eg. Firefox gives up. To make it work for all and all the time I would like to stop serving content to the requesting devices and get rid of lighttpd and add some simple iptables rules so that the connection to the Pi-hole fails fast. How can I tell the requesting party to give up fast? (Means, how should the rules for this special host look like.) Any suggestions for a good approach?
ViToni (121 rep)
Oct 24, 2015, 09:45 PM • Last activity: Jun 27, 2016, 02:17 PM
1 votes
2 answers
404 views
Iceweasel 26, no root privileges and ad blocking
In our workstations we don't have root privileges. Our home directories are synced (they don't depend on the physical computer). We have an old Iceweasel 26 installed. I'd like to block the ads. Unfortunately, Adblock Plus is not compatible with Iceweasel 26. I'd use `/etc/hosts`, but, as far as I k...
In our workstations we don't have root privileges. Our home directories are synced (they don't depend on the physical computer). We have an old Iceweasel 26 installed. I'd like to block the ads. Unfortunately, Adblock Plus is not compatible with Iceweasel 26. I'd use /etc/hosts, but, as far as I know, I can't set up user-specific /etc/hosts. I considered setting up my own local Firefox, but our home directory is limited to 768MB, so I don't think it's a good idea. What would be an optimal solution in my case? Is taking an old version of ABP the only way out?
marmistrz (2792 rep)
Oct 11, 2015, 11:59 AM • Last activity: Oct 11, 2015, 12:36 PM
0 votes
1 answers
157 views
Adblock rule to block g+ / twitter / etc.
Looks like this rule works to blocking facebook domain, when not visiting the facebook domain (ex.: "like/share" etc. buttons on other pages then facebook): ! don't allow facebook outside facebook.. ||facebook.com$domain=~www.facebook.com ||facebook.net$domain=~www.facebook.com ||fbcdn.net$domain=~w...
Looks like this rule works to blocking facebook domain, when not visiting the facebook domain (ex.: "like/share" etc. buttons on other pages then facebook): ! don't allow facebook outside facebook.. ||facebook.com$domain=~www.facebook.com ||facebook.net$domain=~www.facebook.com ||fbcdn.net$domain=~www.facebook.com facebook.com###appsNav facebook.com###pagesNav facebook.com###groupsNav facebook.com###pagelet_friends_online facebook.com###pagelet_bookmark_nav facebook.com###pagelet_rhc_footer But how can I block completely twitter / g+ / etc sites with adblock rules? (Is this really effective, or it only makes me not to see the fcb buttons/etc.)?
gasko peter (5634 rep)
Apr 10, 2013, 02:59 PM • Last activity: Apr 10, 2013, 11:20 PM
Showing page 1 of 8 total questions