Possible Duplicate:
How to permanently and irrevocably block websites on Firefox?
I'd like to write a script that modifies /etc/hosts for a certain period of time. Motivation is productivity.
My approach would be to define a block of text with the rules I want and then just put that into /etc/hosts. After the time is over I would search for exactly the same block and delete it.
Now I'm just curious if there is any better way to do that. Maybe a similar construct to those /etc/resolv.conf.tail files?