Created
July 6, 2017 08:24
-
-
Save anthony2025/dbf0e96f394cf84cf15ae713b6f297da to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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, "127.0.0.1 localhost". | |
Type in "127.0.0.1 facebook.com". | |
On a new line, type in "127.0.0.1 www.facebook.com"; this is for extra measure. | |
Now, press 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. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment