Results 1 to 4 of 4

Thread: Block internet connection

  1. #1

    Thread Starter
    Banned programmer_boy's Avatar
    Join Date
    Sep 2005
    Location
    Netherlands
    Posts
    26

    Block internet connection

    Is it difficult in C# to block and unblock the internet connection on a pc?

    If that's not too difficult, is it also possible to raise an event when an application wants to access the internet?

    (Yes I want to built a basic firewall )

    Cheers
    PB

  2. #2

    Thread Starter
    Banned programmer_boy's Avatar
    Join Date
    Sep 2005
    Location
    Netherlands
    Posts
    26

    Re: Block internet connection

    Bump

  3. #3
    PowerPoster 2.0 Negative0's Avatar
    Join Date
    Jun 2000
    Location
    Southeastern MI
    Posts
    4,367

    Re: Block internet connection

    From my understanding of how firewalls work (and I admit, I know very little) I don't think you could easily do it using C# or VB.NET. I think you would have to build your own device driver that sits on top of the network device driver on the machine.

    You can read up on device drivers here, but it is some very advanced programming:
    http://www.microsoft.com/whdc/devtools/ddk/default.mspx

  4. #4
    PowerPoster 2.0 Negative0's Avatar
    Join Date
    Jun 2000
    Location
    Southeastern MI
    Posts
    4,367

    Re: Block internet connection

    Here is an article on developing your own firewall:

    http://www.codeproject.com/internet/drvfltip.asp

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width