blokada icon indicating copy to clipboard operation
blokada copied to clipboard

I want to block apps from Internet access (Firewall)

Open CrimsonFork opened this issue 6 years ago • 91 comments

I'd like to completely block internet access for certain apps. Would that work?

CrimsonFork avatar Sep 19 '17 17:09 CrimsonFork

Not as of now, but it's a good feature request.

kar avatar Sep 22 '17 11:09 kar

:+1: for this request

jeroenev avatar Jan 08 '18 08:01 jeroenev

Hi there, amazing app you got here. I was wondering if you could add an option to block a specific app from accessing the internet. Sometimes some apps request access to certain things on my device, that it doesn't need. I am on Android 5.1.1. so I can't deny specific permissions, so having an option on your app to block it from accessing the internet would be great. In case you already have this option, my bad, I'm new to this app. Let me know how to activate it. Thanks :)

kar avatar Feb 27 '18 22:02 kar

+1👍

jerryn70 avatar Jul 04 '18 08:07 jerryn70

This would be great. But I would like to add a single app to the blacklist or all. All would be very useful, because I want to black all apps and only give some of them a permission to access the internet. Also for the system apps.

GambaJo avatar Jul 09 '18 11:07 GambaJo

I would like the same as @GambaJo !!!

All apps access to internet blocked by default and only allow the ones I really need!!!

Naturally, the ones allowed should still have their ads blocked!!!

maverick74 avatar Oct 12 '18 14:10 maverick74

You are an advanced user. Most of the users aren't. If we would block every internet access, the users would remove the app within 5 sec. So, what about allowing a few and you can decide what should be blocked?

peterroth avatar Oct 12 '18 14:10 peterroth

@rpeter85 I really don't care what the defaults are as long as one can change them in the configs!

In fact it would indeed be better if it would just block ads by default and then, if the user wants, be able to block the apps.

Ideally to block apps I think the user should first decide if it wants to work with a white list (where by default all apps are allowed to access internet except the ones in the list) or with a black list (where by default all apps are blocked from access internet except the ones in the list).

Again, as long as one can easily configure it, defaults as not important for advanced users :)

maverick74 avatar Oct 13 '18 01:10 maverick74

@rpeter85 It depends on how you implement this. If it's transparent, what's happening, then I think, it will be ok. Some system apps shouldn't be blocked, but you can show a hint. I know this feature from NetGuard. You can configure the app, that every app is blocked, even the new installed. And then the user can decide, if the app should have access.

GambaJo avatar Oct 15 '18 07:10 GambaJo

Yes, NetGuard has this and i think it's well implemented (unfortunately some features are pay-for only...)

maverick74 avatar Oct 15 '18 11:10 maverick74

This would be a handy feature for those who only or mostly use mobile data. If I can say "only apps x, y, z get internet" or "x app gets no internet" that would be great. Also, if an app has the internet permissions but doesn't use it in a beneficial way(such as ones that only report your info to a server) you could blacklist it. This way you could also integrate with existing blacklists

Sent from my TETRA using FastHub

androidacy-user avatar Jan 10 '19 12:01 androidacy-user

The last one is the main reason I'd like this feature to be implemented.

On January 10, 2019 12:54:24 PM UTC, colbycdev [email protected] wrote:

This would be a handy feature for those who only or mostly use mobile data. If I can say "only apps x, y, z get internet" or " app gets no internet" that would be great. Also, if an app has the internet permissions but doesn't use it in a beneficial way(such as ones that only report your info to a server) you could blacklist it. This way you could also integrate with existing blacklists

-- You are receiving this because you authored the thread. Reply to this email directly or view it on GitHub: https://github.com/blokadaorg/blokada/issues/49#issuecomment-453086191

-- Sent from my Android device with K-9 Mail. Please excuse my brevity.

CrimsonFork avatar Jan 10 '19 15:01 CrimsonFork

I, personally, would like to set that no apps get internet access except the ones I say so. From the ones that are allowed, I would like those to get their ads blocked (while retaining Internet access to the useful features that really need it)

maverick74 avatar Jan 10 '19 15:01 maverick74

My view would be that by default all apps are under the Blokada filter, then you would have a drop-down that lets you set between allow all (already in the app I believe), filter network (i.e. use Blokada filtering), and Deny all (i.e. block all internet access)

RichyHBM avatar Jan 27 '19 11:01 RichyHBM

I want to outline though, that it would be desirable to implement this feature like in Netguard: Being able to whitelist/blacklist internet access for wifi / mobile data connection separately, so I can block apps wasting my data plan while allowing everything on wifi.

Use case: For example most children have tablets/phones today and it would be desirable to only whitelist mobile data for select applications, like messaging apps. So they can safely use apps without wasting money due to them not understanding / forgetting they are not on wifi.

Maybe you could borrow some code from Netguard? The Netguard Dev btw has no intentions to allow automatic filter updates and the like, so partly redoing Netguard is really appreciated due to the dev of Netguard having a different vision.

Esokrates avatar Feb 17 '19 18:02 Esokrates

Hello, is anyone working on this as I could definitely check this and try to implement it as I have been using blokada for a long time and want to block some apps internet access,so I don't want to use another app for this.

okan35 avatar Feb 24 '19 16:02 okan35

Netguard already has this feature. Currently blokada is lightweight , low on ram and battery. I wonder if this feature will increase ram and battery consumption. Maybe a way to have it default ON, but toggle OFF feature button to switch it off completely if user wants to save her battery or ram. Although I am not sure if that will save memory or battery either. Just thinking about it!

gkrishnaks avatar Mar 11 '19 16:03 gkrishnaks

Netguard already has this feature. Currently blokada is lightweight , low on ram and battery. I wonder if this feature will increase ram and battery consumption. Maybe a way to have it default ON, but toggle OFF feature button to switch it off completely if user wants to save her battery or ram. Although I am not sure if that will save memory or battery either. Just thinking about it!

While Netguard has that feature, Netguard is not a superset of blokada in terms of functionality, especially not regarding filter lists / adblocking. In Netguard you need to manage everything about your filters manually (and you can only specify one filter list), while in blokada you can have multiple preconfigured lists that are updated automatically by the app.

Esokrates avatar Mar 11 '19 17:03 Esokrates

Yes, I'm aware of the differences. I had been a long time user of netguard app, recently switched to Blokada 5 months ago.

gkrishnaks avatar Mar 11 '19 18:03 gkrishnaks

The battery usage on netguard is pretty limited from my use, so that feature integration should be relatively lightweight On the black/whitelist choice, I think it should be blacklist by default and switchable to whitelisting

Sent from my moto g(6) using FastHub

androidacy-user avatar Mar 11 '19 23:03 androidacy-user

The firewall options (block, mobile, wifi, screen on ...) are unique on netguard. Maybe something similar can be implemented here too?

ka223 avatar Mar 23 '19 21:03 ka223

LineageOS users can already config that app-based

beerisgood avatar May 28 '19 21:05 beerisgood

@okan35 and @kar is there any news in this issue???

Is okan35 (https://github.com/blokadaorg/blokada/issues/49#issuecomment-466792093) working on any front in this?

maverick74 avatar Jun 02 '19 03:06 maverick74

I haven't worked on it because code is kind of hard to understand and the feature is not easy to implement also.

okan35 avatar Jun 02 '19 17:06 okan35

It would also be nice to set data limits for apps.

infinitytec avatar Jun 27 '19 17:06 infinitytec

I've tried to switch to Netguard because Blokada doesn't allow completely block internet access for certain apps but Blokada is more user-friendly, so I came back, but I miss this option very much!

ikanakova avatar Jul 08 '19 06:07 ikanakova

Just want to mention that if someone have a rooted device, he can use AFWall+ as a very good workaround...

Tobias-B-Besemer avatar Jul 23 '19 23:07 Tobias-B-Besemer

Really miss this feature too! +1 for this 👍

kojid0 avatar Jul 27 '19 21:07 kojid0

I would love to block internet access per app or at least while the screen is off.

English106 avatar Sep 11 '19 20:09 English106

Just a hint for people who are using their phone with a Google Account:

If you didn't change it you can see what apps are currently tracked under google.com/myactivity. So when the feature is added you might get some inspiration what apps you might want to add.

I'm curious though why the responsible URL isn't tracked by the default lists. @kar do you know why this might be?

alexanderadam avatar Oct 08 '19 16:10 alexanderadam