2 ms·
I 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
by philwelch 16y ago
I 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/