I built a free, open-source content blocker for Linux . Help me improve it more

it is in /home
How to make that load after rebooting ...... so it loads with each reboot, shutdown/startup
 


it is in /home
How to make that load after rebooting ...... so it loads with each reboot, shutdown/startup

While waiting for OP to answer...

You use Linux Mint. Open the menu, search for 'start'. You'll then see a 'startup applications' option. Click on that, and the rest should be obvious.

If it invokes an open terminal (it shouldn't) that annoys you, there are options to get rid of it. But it should run it without an open terminal.

If it requires an open terminal, we'll have to see what the options are.

Also, doesn't this just write data to the hosts file? That shouldn't require a resident application, unless you want it to start for convenience's sake (perhaps because you're changing the data regularly).
 
You use Linux Mint. Open the menu, search for 'start'. You'll then see a 'startup applications' option
Yes, already been there.

It is set to 'open' after a few seconds delay

I have zero idea where it is.

EDIT : found it. You were quite correct. It is in /etc/hosts


# === HARAM BLOCKER START ===
# Haram Blocker v2.0 — 1671 domains
 
It is in /etc/hosts

It's also more useful in some ways. If you're blocking in the browser, that's just the browser being blocked. If you block it in your hosts file, it's blocked for the entire system.

This is the 'correct' way for some people/applications.

It can even be useful in pointing a domain name to a specific IP address.

That said, I haven't used a hosts file in a long, long time. I do not even have them enabled in my ad-blocking extensions. Perhaps I've become too apathetic in my old age?
 
I edited the file in /etc/hosts to allow a couple of sites through, and that appears to be working well for me.
The 'religious' overtone ensures that every social media site on the planet is excluded, and I did that editing to allow two of them to have access.

A bit of fiddling around for me, but I guess I learned a bit from the process.
 
There's a catch....

You must have rooted your Android to edit the hosts file.
 
That said, I haven't used a hosts file in a long, long time. I do not even have them enabled in my ad-blocking extensions. Perhaps I've become too apathetic in my old age?
Most people now days use an extensions to block ads if it's on their local PC and other people use a solution that does it on dns level for example by using Pi-Hole or something similar.
 
EDIT TO ADD, on May 30 2026

I have just now removed ALL of this content blocker
Far too restrictive.
I removed it from my pc, TOTALLY.
As i said in post #2 : Just what we need... a blocker with religious overtones

NOT.
 
I have just now removed ALL of this content blocker
Far too restrictive.

I'm actually surprised you made it this long. Heck, I'm amazed that you tried it.

As I mentioned elsewhere (probably in the linked thread above, but maybe in this one -- I'm not going to go looking for it), your hosts file is a very personal thing. It's up to you to decide what you want to block and what you decide to view.

That was a response given to me way back in what must have been the 1990s, before anyone had host files you could download and use. (They were popular for a while in the early 2000s.) I asked a software author why he didn't maintain such a list, and it was they who gave me the answer. They were right, in my opinion. So, I've held that opinion since.

Though, there are host files out there still. I don't partake.
 
I will try anything once. Just out of sheer curiosity.

My curiosity is now sated. ....at least as far as content blockers are concerned.

I am a tinkerer. ’tis my nature.
 


Follow Linux.org

Members online

No members online now.

Top