You are here

Block ann app completly

7 posts / 0 new
Last post
farat_as
Offline
Last seen: 7 years 10 months ago
Joined: 2012-02-14 09:02
Block ann app completly

Hello,

I want to block a portable app to internet connection. I don't want to use third party apps (firewalls) to do that. I am trying to do with core Windows functions.

I find from command line the way to list all files which have "exe", "dll", "bin" extension under E:/apps/blockedapp directory.

I will block all these all files from command line by:

netsh advfirewall firewall add rule action=block program="dir/filename" name="myapp_filename_out" dir=out
netsh advfirewall firewall add rule action=block program="dir/filename" name="myapp_filename_in" dir=in

My first question is: After these commands, this app can use my internet connection?

I blocked these exe, bin, dll files because they can be executed by starting another process. This (another) process can use the internet connection. --> I test this with foxit reader portable. There is another process which is using to update Foxit Reader. I block this process too by processing these commands.

But I can not be sure if I should block all files (txt, jpg, dat ... even files without extension) or it is enough to block dll, exe, and bin files?

Thank you

vf2nsr
vf2nsr's picture
Offline
Last seen: 8 years 2 months ago
Developer
Joined: 2010-02-13 17:10
If I may be so bold to ask?

Why?

What app do you specifically not want to have internet connection?

“Be who you are and say what you feel because those who mind don't matter and those who matter don't mind.” Dr. Seuss

farat_as
Offline
Last seen: 7 years 10 months ago
Joined: 2012-02-14 09:02
I want to block app that does

I want to block app that does not require internet connection and I don't trust.

vf2nsr
vf2nsr's picture
Offline
Last seen: 8 years 2 months ago
Developer
Joined: 2010-02-13 17:10
OK

Still not sure why you would even want to use an app you do not trust. What app is it? Why not just kill the internet connection while using the app?

“Be who you are and say what you feel because those who mind don't matter and those who matter don't mind.” Dr. Seuss

farat_as
Offline
Last seen: 7 years 10 months ago
Joined: 2012-02-14 09:02
Why the reasons is so

Why the reasons is so important. I don't want to give app names here. Nothing will change If I will write app names here...

I don't trust many closed source apps. No need to explain the rasons that already know them. I will block many of them if I can. If not possible, no problem.

vf2nsr
vf2nsr's picture
Offline
Last seen: 8 years 2 months ago
Developer
Joined: 2010-02-13 17:10
Reason I ask

Is because of the specifics to the program would tell you what needed to be blocked or not blocked. Obviously the simple answer is to not have the network on.

But to ask a broad based question will only get you broad based answers and speculation.

So wtih no knowledge of the app or what you are trying to do best thing to suggest is to disable the net when using the app you want blocked..

“Be who you are and say what you feel because those who mind don't matter and those who matter don't mind.” Dr. Seuss

farat_as
Offline
Last seen: 7 years 10 months ago
Joined: 2012-02-14 09:02
I understand why you need the

I understand why you need the app name, and you are right. But It does not will change anythink because it is not an app bu tmultiple apps. So I will find a generic way to block them.

I know thta If I disconnect from connection, the app will not use the internet but I don't want to do this every time if I will find better way.

For Now I create a script which finds all exe, jar, bin... files under a directory. I create another scirpt that adds all these files to firewall. I test by checking the updates from settings of foxit reader. I check the chrome too, It can not go to any site. It works..

Log in or register to post comments