0

Hi,I'm trying to do a parental control software project in C#. I made blocking and unblocking specific websites by using hosts file but the other part of my project is blocking the internet access. When I click a button, the internet access will be blocked and when another button is clicked the internet will be reachable. Block/enable internet access in C#, how can it be done? Thank you for your help.

3
Contributors
2
Replies
6
Views
4 Years
Discussion Span
Last Post by james6754
0

I'm not sure this is possible...imagine the problems that could be caused if this was possible...

As tinstaafl said, you can disable (or enable) an adapter using WMI (specifically the MSFT_NetAdapter class).

Click Here

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.