One of the greatest time wasters today has got to be social-networking websites. More specifically, Facebook and Twitter. I found myself spending unnecessary amounts of time on both of those websites when I had nothing else to do. Let’s not lie, it’s an addiction, and many people are guilty of it besides me. Fortunately, there have already been temporary solutions such as SelfControl, a freeware application developed by Steve Lambert. In the past I used SelfControl because it was simple and allowed me to setup a time frame that I could block out Facebook and/or Twitter. For students, I can almost certainly recommend using that application during finals week or when preparing for any exams in general. However, I wanted to stop frequenting Facebook on my Mac, so I needed a more permanent solution other than deactivating my account because I still want to be able to access Facebook from my iPhone. With a view commands in Terminal, this can be done in no time!
- Open up Terminal in /Applications/Utilities.
- In the command line, type in
"sudo nano /etc/hosts".
- When asked, type your admin password.
- In the screen that will appear, you’ll see the host database for your computer.
- Using your down arrow, go to the bottom, right under where it says,
- Type in
- On a new line, type in
"127.0.0.1 www.facebook.com"; this is for extra measure.
- Now, hold down Control + “O”. This will save the changes to the host database.
- Hit “Return” and then Control + “X” to exit the screen.
- Remove the existing cache by typing in
"sudo dscacheutil -flushcache"in the command line, this refreshes the existing cache on the host database.
- You should receive an “Unable to connect” error message when you go to Facebook.com now.
- Now, back to doing something more productive…