Adblock-oisd : 22.03 allows you to use huge blocklists with dnsmasq

Not sure if it interests anyone but I did see oisd.nl go down again last month so I added the maintainers github that he mirrors for all of the lists: https://github.com/sjhgvr/oisd

Also there is a new list for DNSMasq v2.86 or newer. Starting with v2.86, using the format server=/example.com/ or address=/example.com/ will only block A queries and send other queries upstream. The format for v2.86 and newer should be local=/example.com/ which blocks all the queries for the domain.

More info: https://thekelleys.org.uk/dnsmasq/CHANGELOG and https://thekelleys.org.uk/dnsmasq/docs/dnsmasq-man.html (-A, --address)

5 Likes

Hiya everyone, yep mine has been running great without probs and so tbh I haven't even opened the hood for a while.

@account4538 Good pickup thanks for posting.

@Lynx a small change to the oisd path for 22.03 and above users:
https://dnsmasq2.oisd.nl/

And a pretty simple sed update required:

# Get line number and match of any rogue elements
rogue_element=`sed -nE '\~(^address=/|^server=/|^local=/)[[:alnum:]][[:alnum:].-]+(/$|/#$)|^#|^\s*$~d;{p;=;q}' /tmp/oisd.txt | { read match; read line; [[ ! -z ${match} ]] && echo "${line}: ${match}"; }`

To easy, done

Ah, so does this mean we need old sed for old domain and new sed for new domain? And users sets domain? Or just new domain and new sed for all?

I updated sed in the above post to handle old and new by adding local=/

But I'd say use the new url for 2.86 and above. Oisd full on 2.85 and below was slooooow anyway.

1 Like

How about this:

Before commit:
Mon Feb  6 14:54:58 2023 user.notice adblock-oisd: New oisd.txt installed with good line count: 289414 and dnsmasq check passed.

After commit:
Mon Feb  6 17:18:05 2023 user.notice adblock-oisd: New oisd.txt installed with good line count: 295021

More for less!

Still working fine for you @Bill?

I really like this adblock script now. Nice and simple with plenty of checks and balances. And oisd just works in terms of internet working fine but ads blocked.

Yes Sir, although I have to execute the last line separately in Putty. Otherwise, the service is Disabled.

wget https://raw.githubusercontent.com/lynxthecat/adblock-oisd/main/adblock-oisd -O /etc/init.d/adblock-oisd
chmod +x /etc/init.d/adblock-oisd

service adblock-oisd enable
1 Like

Still working every day for me.

@richb-hanover-priv any chance you could relocate this thread to the community builds subforum?

1 Like

@Lynx As an alternative, I would propose that you/OP/somebody create a new topic on the Community Builds subforum.

That would give a fresh start with a clean announcement of the current state of the adblock-oisd package: what it is, how to install it, how to configure it, etc. Obviously, that post should contain a link back to this topic for historical context.

3 Likes

Good point you are right @richb-hanover-priv - if a job's worth doing, it's worth doing well. Will set this up when I get a chance

1 Like

Anyone know about this login now appearing on oisd.nl ?
The download links are still working, but may need to watch out for any changes if they happen.
image

I would go ahead and update. The note says the old links will work but who knows when they will be deprecated.

I don't see this @Wizballs .. yet?..

Welp, looks like the site has changed and the login has disappeared. Does appear changes are afoot though...

He seems to like tinkering for sure. Thankfully this is just with a website and not a firearm.

It would be nice to be able to collect the queried domains and compare them with a very complete block list to make a custom and very efficient block list with little RAM usage.

Oisd full is currently using only about 30mb ram anyway. Are you talking about this for low ram devices eg 128mb?

That's the complete opposite of what I meant. Read carefully what I wrote. The idea is to make a custom blocklist with the domains to block that have been collected in some way from the clients' past browsing.