Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I want to stop being able to access the internet during my working day. Is there any tool that I can use to disable internet connectivity for a specified period of time? I'm using Ubuntu 10.04

share|improve this question

5 Answers 5

Self Control (Download Link)

From OMG!Ubuntu!

Self Control allows you to ‘block access to incoming and/or outgoing mail servers and websites’ for a specified amount of time.

Self Control Screenshot

share|improve this answer

I just unplug the network cable when i'm not using the internet. This won't work for wireless connections, but i would reccommend using it if you have a wired connection (probably in addition to software disable).

share|improve this answer

I use LeechBlock for Firefox at work. Block your biggest time wasters and you'll soon get back to work.

You can still access the rest of the web to do work-related searches (say), so you don't look like a complete nutter to your colleagues if they are at your screen.

share|improve this answer

You can disable your network interfaces

typing "ifconfig" at the command line will print all of your network interfaces.

you can bring down an interface like this

sudo ifconfig eth0 down

where eth0 is the network interface you are disconnecting, such as your wireless or wired Ethernet.

when you are ready to use it again just bring it back up.

sudo ifconfig eth0 up

share|improve this answer
    
Thanks Chandler - what I am trying to do is prevent myself from surfing the web, is there a way to set a time parameter when I do this? –  williamR Jul 27 '10 at 16:15
    
You could put those two commands in roots crontab at specific times. So lines like "0 8 * * * ifconfig eth0 down" "0 17 * * * ifconfig eth0 up" will turn off the interface at 8am and turn it on at 5pm. You can also specify certain days of the week. See man -s 5 crontab –  KeithB Jul 27 '10 at 18:06

Is this computer a home computer or your work computer? Also is there any other users on the network with you?

share|improve this answer
    
It's a personal computer and I have administrator access to it. –  williamR Jul 27 '10 at 15:05
1  
Well you can use OpenDNS as your DNS provider and have it set to disable internet access on your network for a set period of time (and free). But if you dont mind running a command each time to take it down/bring it back up, do what Chandler suggested. I know I would be tempted to just bring it back up though. –  Brandon Jul 27 '10 at 15:45

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.