Hi all,
how can I disable internet in windows/Linux machine. I want to disable completely and enable it at will using C++

I think you can use system() call in windows for that, with system() call one can easily supply dos based command.
And as you want to switch off services related to internet.
You can use "net start" and "net stop" command for enabling and disabling any system services. So there you can specify your internet services.

Cool, so which command is used to stop internet services but not local networking. Only internet?