Is it possible to permanently disable internet access under Ubuntu?

While I agree with everyone that this is really a pretty non technical question, I thought I would throw in my two cents anyways. Depending how much effort you really want to go to in order to do this and how recoverable you want it to be, the quickest and easiest to recover mode I can think of is run the following command

sudo iptables -I INPUT 1 -j DROP

If you want to get a little more serious, about it and much harder to fix, find your kernel modules for each NIC or just the NIC's you want to disable and delete them then either rmmod them or reboot the system. You can find the name name of the module by running

ethtool -l eth0

and replacing eth0 with all the NIC's you don't want active. Then to find the kernel modules, let's say in your case your find the driver is e1000e, then run

find /lib/modules/ -iname e1000e | grep '\/kernel\/drivers\/net\/'

That should give you a pretty good view of where the drivers are from there you can delete them if you want though to recover you would need to copy them back from either a package or another backup you made and put them back to where they should be. If for some reason I wanted to disable my NIC in a way that would make sure I couldn't enable it while I was out then I would copy them to a USB fob and leave the fob at home.

Anyways, this is all hypothetical. If you really want to make sure you don't use the net when you shouldn't then you will need to learn to exercise self restraint and personal discipline.

P.S.: If you want to make sure the laptop doesn't access the net again, open it up. If it is a laptop with a WiFi NIC in a mini PCI port then pop it out and throw it away. If it uses an onboard chip for WiFi that is a dedicated chip / it isn't part of the North bridge or South bridge and doesn't provide any other functionality then WiFi then de-solder it and throw it away. If it has WiFi built into a shared chip set then either see if you can disable it in BIOS and have someone else set a BIOS administrator password so you can't change it or just sell the computer and buy one that doesn't have integrated WiFi then go buy some self help books on Getting Things Done and other motivation guides for accomplishing tasks.


Instead of trying to find technical ways to sabotage your own computer's Internet access, maybe you should try to stop procrastinating. First; stop posting here with questions that don't belong (which you'll find will already save you some time), second; stop fighting yourself. It won't work. Just work on your paper and try to restrain yourself from clicking a a browser icon until it's done. If that STILL doesn't work, create a new user account WITHOUT admin privileges and DELETE your admin (root) account. That should stop you from getting online, and prevent you from installing any new packages until you find an Ubuntu install disk, boot off of that, then start procrastinating again.


Does your laptop have a removable modem/lan modal? If so, remove it and leave it at home. But I suspect you'll always be able to find other ways to waste time, so getting a backbone is probably the best solution.