473,320 Members | 2,161 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Disabling Internet Access

2
I'm looking for different methods of disabling all internet access that work on XP and Vista. It would need to be reversible. Preferably, these methods would be accessible through a python program (not the best for the task, but it's all I know).

Some things I've considered:
Modifying the registry in ...Software\Microsoft\Windows\CurrentVersion\Inter net Settings -- Unfortunately, this doesn't block Firefox. (Does Firefox have a registry setting that can disable it?)
Disable Ethernet card -- I have no idea how to do this
Block all ports -- Again, clueless on the execution of this strategy.

Does anyone have any ideas for disabling the internet or rendering all browsers useless? Or any instructions to help me implement these solutions?
Aug 11 '08 #1
4 3712
Nepomuk
3,112 Expert 2GB
How about pulling the network plug? ;-)

Now, to be serious, I found these online (but have not tested them):

disable network:
Expand|Select|Wrap|Line Numbers
  1. netsh interface set interface "Local Area Connection " DISABLE
enable network:
Expand|Select|Wrap|Line Numbers
  1. netsh interface set interface "Local Area Connection " ENABLE
These are windows cmd command lines, so you'll have to call them via python. I don't know how to run system calls via python, but I'm sure you'll find out.

Hope that works!

Greetings,
Nepomuk
Aug 12 '08 #2
Umenzi
2
Unfortunately, those commands don't seem to work. When I run either of them, a console pops up, prints something, and disappears in the blink of an eye (and the internet still works). Presumably it prints some kind of error, but I don't know how to halt a console in order to read it.
Apparently it also may have some trouble in general, running in XP:
http://support.microsoft.com/kb/262265/en-us/

Calling the command line from python isn't very difficult at all, so if those commands had worked, it would have been gravy. Microsoft's workaround sounds tricky, though, so I'd still welcome other suggestions.
Aug 13 '08 #3
Nepomuk
3,112 Expert 2GB
Unfortunately, those commands don't seem to work. When I run either of them, a console pops up, prints something, and disappears in the blink of an eye (and the internet still works). Presumably it prints some kind of error, but I don't know how to halt a console in order to read it.
Apparently it also may have some trouble in general, running in XP:
http://support.microsoft.com/kb/262265/en-us/

Calling the command line from python isn't very difficult at all, so if those commands had worked, it would have been gravy. Microsoft's workaround sounds tricky, though, so I'd still welcome other suggestions.
Open cmd:
Start -> Run -> cmd -> OK
and run the commands from there. That way, you'll be able to read any kind of error it might give you.

Also, you can check out the commands manual with
Expand|Select|Wrap|Line Numbers
  1. netsh -h
Apparently, the "set" command is the one you probably have to focus on.

Greetings,
Nepomuk
Aug 13 '08 #4
Curtis Rutland
3,256 Expert 2GB
Or for that matter, you can go into the Network Connections [Control Panel -> Network Connections] folder and right-click each network adapter and click Disable.

I don't know if you planned on doing this programatically or not.
Aug 13 '08 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

6
by: Adam Monsen | last post by:
It would be helpful to be able to temporarily disable AF_INET socket connections (I don't care about IPv6 for now). What I'd like to do is create an environment for a Python script that appears...
2
by: Jeelz | last post by:
Hi Guyz, Would appriciate any tip on disabling an ASP.NET LinkButton using client sided code like javascript. My Requirement is such that the user should be allowed to click on the link...
12
by: Nalaka | last post by:
Hi, I suddenly started getting a lot of errors from html validation (some CSS) so I followed the following instructions to disable it. If you'd rather not have these types of HTML validation...
1
by: kebabkongen | last post by:
Hi, I'm working on a JavaScript that is enabling / disabling a select element according to whether a checkbox is selected or not. This works fine in Firefox, but in Internet Explorer (v 6.0.2900)...
2
by: Axel Gallus | last post by:
Is it possible to disable the sandbox , respectively the private origin policy in internet explorer or firefox? Yes, i know there are a lot of security issues related to this topic, but i have to...
3
by: richard.sutcliffe | last post by:
I want to write a small service that will simply disable internet access from my kids PC between certain times (to make sure they do their homework, etc). I know I could buy any number of internet...
11
by: nosipho | last post by:
Hi guys, I've got this PC on my network. I can access everything on it on the network but I can't ping it. I tried pinging with the computer name and the IP adress aswell but It just doesn't want...
0
by: hani1987 | last post by:
hello I am a BE computer student and needed information for my BE project. The project is as follows We are developing a web application for a company. This involves setting up a wi-fi hotpot...
1
by: harvcohen | last post by:
I would like to be able to disable at the very least web access from my home computer between 10PM and 6AM and if possible disable windows access altogether for that time period. Freedom only...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.