Habits are hard to break but I've also found it surprisingly easy to manipulate yourself by putting an annoying obstacle in the way. For getting work on time I can't snooze-beat the combination of a wake up light and a distantly located mobile alarm.
On internet use restriction the best solution so far has been to use a simple electronic plug timer connected to a laptop without a battery. Zap - no internet for you.
There ought to be a solution that installs itself into the computer's firmware though. Most of us on HN install new operating systems at a much higher rate than the typical user so having a persistent solution would be huge.
@bachbach: As you guessed (https://news.ycombinator.com/item?id=18191949) your account does appear to be banned as of today, your comments are autodead, and vouching for them does not vivify them. As none of your comments seem offensive, and since you don't seem to have been flooding the submissions, it doesn't make sense to me. You should write to 'hn@ycombinator.com' and ask what's up.