5 ms·
"edit a file, and then restart" Our of curiosity, what operating system do you use? On Windows, hosts entries take effect immediately. No need to restart.
by portman 16y ago
"edit a file, and then restart"
Our of curiosity, what operating system do you use? On Windows, hosts entries take effect immediately. No need to restart.
- johnfn 16y agoUbuntu. I could be wrong though - I read it somewhere and never tested it out.
- polynomial 16y agoWait, you restart your whole system anytime you edit /etc/hosts ?
- philwelch 16y agoI wrote an ad-hoc adblocker out of /etc/hosts files and shell scripts for Mac OS X. (The shell scripts just block and unblock--unblocking is necessary sometimes for a chess site I use which detects adblockers.) Usually restarting is overkill for a new hosts file to take effect--on Mac OS X `dscacheutil -flushcache` will reinstate a hosts file. Ubuntu must have a similar command.
- noahc 16y agoI use the self control app on Mac OSX. http://visitsteve.com/work/selfcontrol/ http://visitsteve.com/work/selfcontrol/