Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 01-29-2013, 02:29 PM   #1
LQ Newbie
Registered: Jan 2012
Posts: 11

Rep: Reputation: Disabled
way to limit internet usage?

I need to control the time I spend on the internet. The ideal thing would be a timer that pops up when I log in; Everything works like normal for a set amount of time, for example one hour, and after that all connections go down until the next day, forcing me to go offline.

Is there such a program? Or a very easy way to solve it? I know how to edit the hosts file and can copy and paste and run a simple script, but that's about it.

Found two apps already - SelfControl and SelfRestraint, but they both work with a timer on the internet block instead of a timer on the amount of time the net is accessible, and only work with specified sites.

I need a system wide block, not browser-specific like Leechblock and StayFocused.

Appreciate any help!
Old 01-29-2013, 08:07 PM   #2
LQ Guru
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Debian, Mageia, and whatever VMs I happen to be playing with
Posts: 13,452
Blog Entries: 18

Rep: Reputation: 3543Reputation: 3543Reputation: 3543Reputation: 3543Reputation: 3543Reputation: 3543Reputation: 3543Reputation: 3543Reputation: 3543Reputation: 3543Reputation: 3543
I don't know about any applications, but how about a kitchen timer? It will probably be harder to ignore than a program on the computer. And it's delightfully low tech.

Alternatively, you may be able to configure connection times in your router by MAC address. I used to block the "family computer" from the internet in the router between midnight and 6 a. m. so Second Son couldn't be chatting on AIM all night.

Not that it made him any easier to get up and get to school in the morning . . . .
Old 01-29-2013, 08:37 PM   #3
LQ Guru
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,569

Rep: Reputation: 2129Reputation: 2129Reputation: 2129Reputation: 2129Reputation: 2129Reputation: 2129Reputation: 2129Reputation: 2129Reputation: 2129Reputation: 2129Reputation: 2129
As frankbell alluded to, doing things like this in the central router is often easier and more effective than through iptables restrictions on one specific computer (it'll block all internet traffic through the router, including laptops, tablets, smart phones, etc., rather than just internet traffic on one computer).

My girlfriend actually uses this quite often...I'll get a text message at work saying something along the lines of "Block facebook, I'm not getting any work done", and I'll log into the router's web interface and block facebook either indefinitely or for a predetermined length of time. Depending on the router, it's usually easy and effective, and it keeps her off of facebook on the server, her laptop, and her iphone.


block, internet

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Limit memory usage vinaytp Linux - Newbie 1 11-30-2009 11:45 PM
[Squid] Howto Limit Internet Usage Per Month abedzilla Linux - Server 0 07-13-2008 06:49 AM
Limit CPU usage slantoflight Linux - General 5 02-23-2006 03:37 AM
How to limit the account usage. prabhatsoni Linux - Security 5 01-18-2006 02:19 AM
limit usage? mifan Linux - Newbie 4 04-18-2004 06:05 AM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 11:34 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration