Like Tree5Likes

how to block a specific programm's network activity ?

This is a discussion on how to block a specific programm's network activity ? within the Tech Board forums, part of the Community Boards category; how can i block a specific programm's network activiry in windows in c or in cmd?...

  1. #1
    Registered User smahdi1991's Avatar
    Join Date
    Nov 2009
    Posts
    19

    how to block a specific programm's network activity ?

    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.

  2. #2
    Registered User
    Join Date
    Oct 2006
    Posts
    2,351
    what words did you search for on google?
    Last edited by Elkvis; 05-13-2014 at 11:25 AM.
    stahta01 likes this.
    Code:
    namespace life
    {
        const bool change = true;
    }

  3. #3
    Registered User
    Join Date
    Nov 2012
    Posts
    1,057
    This is not really a C programming question. Btw the keyword you should search for is firewall or software firewall.

  4. #4
    بابلی ریکا Masterx's Avatar
    Join Date
    Nov 2007
    Location
    Somewhere nearby,Who Cares?
    Posts
    493
    ........
    Highlight Your Codes
    The Boost C++ Libraries (online Reference)

    "...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


  5. #5
    Registered User
    Join Date
    Oct 2006
    Posts
    2,351
    Quote Originally Posted by Masterx View Post
    ........
    did you have something meaningful to add to the conversation? what was the point of your post?
    Code:
    namespace life
    {
        const bool change = true;
    }

  6. #6
    Registered User smahdi1991's Avatar
    Join Date
    Nov 2009
    Posts
    19
    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

  7. #7
    Registered User
    Join Date
    Nov 2010
    Location
    Long Beach, CA
    Posts
    5,458
    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
    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
    As to your question:
    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?

  8. #8
    Registered User smahdi1991's Avatar
    Join Date
    Nov 2009
    Posts
    19
    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 ?

  9. #9
    Registered User
    Join Date
    Nov 2010
    Location
    Long Beach, CA
    Posts
    5,458
    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?

  10. #10
    Registered User smahdi1991's Avatar
    Join Date
    Nov 2009
    Posts
    19
    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.

  11. #11
    Registered User
    Join Date
    May 2009
    Posts
    2,543
    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.
    Elkvis likes this.
    "Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the universe trying to produce bigger and better idiots. So far, the Universe is winning." Rick Cook

  12. #12
    Registered User smahdi1991's Avatar
    Join Date
    Nov 2009
    Posts
    19
    you mean netlimiter and kaspersky an ... using this method ? for monitoring network activity?

  13. #13
    Registered User
    Join Date
    Nov 2010
    Location
    Long Beach, CA
    Posts
    5,458
    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.
    Salem likes this.

  14. #14
    Registered User smahdi1991's Avatar
    Join Date
    Nov 2009
    Posts
    19
    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.

  15. #15
    Registered User
    Join Date
    Nov 2010
    Location
    Long Beach, CA
    Posts
    5,458
    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.
    smahdi1991 and Salem like this.

Page 1 of 2 12 LastLast
Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Mouse activity
    By rogster001 in forum C Programming
    Replies: 2
    Last Post: 09-03-2009, 05:52 AM
  2. Activity Monitoring Program
    By kyourin in forum C++ Programming
    Replies: 0
    Last Post: 06-22-2009, 12:20 AM
  3. Get HDD Activity
    By leandroaz in forum C++ Programming
    Replies: 13
    Last Post: 10-10-2008, 12:28 PM
  4. logging key activity
    By threahdead in forum C Programming
    Replies: 1
    Last Post: 10-03-2002, 01:05 AM

Tags for this Thread


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21