Click to See Complete Forum and Search --> : block internet connection for one program


Damner
October 20th, 2008, 12:28 PM
yeah, i posted in the other thread first, but nobody answered, so now im creating my own thread, the question is:
How do I disable the internet connection for one program? And no, I do not want to install a firewall, its only for one program/process.

Marc G
October 21st, 2008, 10:31 AM
I don't get it.... A firewall is supposed to do this work. So, basically, if you find a way to do this, you are writing somekind of firewall.

Damner
October 21st, 2008, 11:07 AM
Call it what you want... I just don't want to install a firewall, i want to make my own, but I still don't know how to block one process and not an ip address

Damner
October 24th, 2008, 04:11 AM
nobody knows that?

Damner
October 28th, 2008, 08:47 AM
push

olivthill
October 28th, 2008, 09:18 AM
Sorry, I don't understand very well your question, and maybe I am not the only one, which would explain why you have no answers.

At first, I was thinking you did not want your program to surf on the web. But since a program does what it is programmed to, the solution would simply be to program it so that it does not connect to the web.

Now, maybe you mean that you want to prevent your program being launched remotely via an internet connection. Do you know under which circumstances this might occur? Maybe you can take conservative measures like placing it outside of the directories visible form internet or adding security rights to your program so that it could be launched only by some authorized users.

Damner
October 28th, 2008, 11:38 AM
lol okay:

I've got two programs:
1. my self-coded program
2. another program that connects to the internet (e.g. iexplore.exe)

I want the 1. program to block the 2. programs internet connection so it can't connect to the network/internet

Marc G
October 29th, 2008, 01:52 PM
Check out the following articles:
http://www.codeguru.com/forum/showthread.php?t=413766
http://www.codeplex.com/netdefender
http://www.codeproject.com/KB/IP/smfirewall.aspx (I don't know if you can adapt this to filter on program basis).

TheCPUWizard
October 29th, 2008, 02:02 PM
lol okay:

I've got two programs:
1. my self-coded program
2. another program that connects to the internet (e.g. iexplore.exe)

I want the 1. program to block the 2. programs internet connection so it can't connect to the network/internet

#2 is BY DEFINITION a Firewall. Period.

You have already been given some links on writing a firewall, and there have been many other (searchable) threads here on CG. There was even an article earlier this year if my memory serves me....

Damner
October 31st, 2008, 10:00 AM
Thanks but Ive already found those sites and theres only described how you block a port / ip address, but I want to know how to block the entire programs connection