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\Mic rosoft\Windows\ CurrentVersion\ Internet 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?
4 3734 Nepomuk 3,112
Recognized Expert Specialist
How about pulling the network plug? ;-)
Now, to be serious, I found these online (but have not tested them): disable network: - netsh interface set interface "Local Area Connection " DISABLE
enable network: - 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
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.
Nepomuk 3,112
Recognized Expert Specialist
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
Apparently, the "set" command is the one you probably have to focus on.
Greetings,
Nepomuk
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.
Sign in to post your reply or Sign up for a free account.
Similar topics |
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 like the network interface is down, so any remote socket stuff
should fail (like an HTTP GET request to Google's home page, for
example).
Anyone know an easy way to do that? Maybe by manipulating the socket
module or something? I'd still like...
|
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 button only once (viz. he should not be
allowed to submit the form twice). This stuff is easy when
using a ASP:Button or HTML Button... but a link button has
got me wondering how... plz help!
|
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 errors show up in
your error-list, you can disable this functionality by selecting the
Tools->Options menu item in VS or Visual Web Developer. Select the
TextEditor->Html->Validation tree option in the left-hand side of the
|
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) it
appears wierd:
When I disable the selevt element in IE, it continues to appear as
enabled (falsely) until I try changing it.
When I click on it, updates itself as grey as to indicate that it is
disabled.
|
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 do it, because i wanna try something.
Greetings
Axel
| |
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
monitoring software but I don't want to act as 'big brother'.
What would be the simplest, most reliable way to do this using c#?
|
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 to ping. I can ping other workstations from it but not it.
What's happening here Guys??
|
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 for the company. So whenever a user enters the wi-fi area , he should be taken to the companies homepage or homepage of our web application irrespective of the webpage typed in his browser.After the 1st page is displayed, the user should be taken...
|
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 works with apple computers - is there some way of doing that to Windows XP PCs?
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
| |
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |