how can i block a specific programm's network activiry in windows in c or in cmd?
how can i block a specific programm's network activiry in windows in c or in cmd?
Last edited by smahdi1991; 05-13-2014 at 10:49 AM.
what words did you search for on google?
Last edited by Elkvis; 05-13-2014 at 11:25 AM.
What can this strange device be?
When I touch it, it gives forth a sound
It's got wires that vibrate and give music
What can this thing be that I found?
This is not really a C programming question. Btw the keyword you should search for is firewall or software firewall.
........
Highlight Your Codes
The Boost C++ Libraries (online Reference)
Bill Bryson"...a computer is a stupid machine with the ability to do incredibly smart things, while computer programmers are smart people with the ability to do incredibly stupid things. They are,in short, a perfect match.."
i developed A programm like wireshark in c and using gui in c#.and the last part is to click on a programm name(that i have all programm names that using network) and it will be stop in network activity. i searched about a peice of code or an example for that but icant find something good for me
MasterX/smahdi1991:
Since you appear to be the same person based on the edit of post #4 and addition of post#6, I will address you as one:
Read this: Announcements - C Programming. Pay special attention to rule #9. You should not have 2 accounts. This gives the impression (to me at least) that one account is for more "legit" work while another is for more nefarious work.
Also, please don't edit/remove content without good reason (good reasons are double-posts, typos, etc; not to mask the fact that you posted from the wrong account). It disturbs the flow of the thread, and now Elkvis' post #5 (and post #4) just seem silly. For anybody who happens along and is confused, post #4 from MasterX had identical contents to post #6 from smahdi1991; namely
As to your question:i developed A programm like wireshark in c and using gui in c#.and the last part is to click on a programm name(that i have all programm names that using network) and it will be stop in network activity. i searched about a peice of code or an example for that but icant find something good for me
Most OSes do not just allow one program to affect the behavior of another. That would make it way too easy for viruses, worms, and other evil programs, to wreak havoc. Why do you want to deny network ability to a program other than your own? What is your ultimate goal? Why do you not simply stop that other program from running?
i am sorry for posting with my big brother acount.
i thinked that i was login with my acount.
-----------------------------------------
i have to develope my programm for my Bachelor Project at the University.
beacuase of that i have to know how to do this ?
Can you point us to the assignment description so we know exactly what it is you are supposed to do? Can you provide more info about the environment you're working in? What OS and version? What tools/libraries you have available and are allowed to use? Can you show us what you tried so far?
well ,i work in windows 7 .
idont know what tools should i use to do such a thing .
realy iwant to do such a thing like netlimiter for manage system network activity specialy for every programm that using network .
i just after my search found a way that using ipsec in windows for doing my work.but ipsec is an external programm from windows.i want to use some api or some cmd(command prompt ) instruction(commands like tracert,netstat, etc) for doing my work.
Is it really that hard for you to use Google? Key words used "windows 7 firewall api"
Using Windows Firewall with Advanced Security (Windows)
Tim S.
"...a computer is a stupid machine with the ability to do incredibly smart things, while computer programmers are smart people with the ability to do incredibly stupid things. They are,in short, a perfect match.." Bill Bryson
you mean netlimiter and kaspersky an ... using this method ? for monitoring network activity?
We are not your Google proxy. You can Google "how netlimiter works" and read for yourself. It's worth looking at similar products as well to find out how they work. You analyze and compare how each one works, then pick an implementation strategy and code it. If this is for a university project, as you mention in post #8, you are almost certainly expected to do this research and programming yourself.
tanx to you "anduril462".
but i asked a question here becuase i want an answer from a person who has an Experience about that .and this is the good idea for geting the ways an get the best way for continue.
i dont ask from any body that dont know anything about this,and i dont ask from anybody to google for me.
if you dont know the answer or if you dont work in this topic,nobody forced you to answer that.
I hope you're not upset.
No, I'm not upset. I wrote those things because I think you misunderstand the purpose of this forum. It is for us to help you. Helping you means that you do the majority of the work, show us what you tried and explain where you're having problems, then we help you fix those problems. It does not mean that we tell you exactly how to do your homework.
No, I'm not a Windows expert, nor am I an expert on shaping/controlling/limiting network traffic, but I do have a reasonable amount of experience with network programming -- mostly on Linux, but the core concepts translate to Windows well enough -- and I do have some idea of how it might be implemented (firewall API mentioned by Tim, writing a network driver). I have no idea if that is what Netlimiter or Kapersky use, but it might be. I can pretty much guarantee you a typical user-level application will not work, however.
Since this is your project for your Bachelors, you need to do the bulk of the work. Anything less boarders on plagiarism and academic dishonesty, which could cause you to lose your degree -- something none of us want. The purpose of your project is to show that you can research a topic and implement a solution to a problem. Thus, you need to research how these tools work. Tell us what you learned. Tell us how you plan on implementing your traffic shaping tool. If you're having trouble with the design, ask us questions on the part you are having trouble with. If you have trouble with the implementation, ask us questions specific to the problems you are having. Again, we are happy to help, but you need to show us that you put forth a genuine effort before we help you.