{"smallUrl":"https:\/\/www.wikihow.com\/images\/thumb\/4\/49\/987876-20-1.jpg\/v4-460px-987876-20-1.jpg","bigUrl":"\/images\/thumb\/4\/49\/987876-20-1.jpg\/aid987876-v4-728px-987876-20-1.jpg","smallWidth":460,"smallHeight":341,"bigWidth":"728","bigHeight":"540","licensing":"<div class=\"mw-parser-output\"><p>Image by: Uploader<br>

License: <a target=\"_blank\" rel=\"nofollow noreferrer noopener\" class=\"external text\" href=\"https:\/\/creativecommons.org\/licenses\/by\/3.0\/\">Creative Commons<\/a>

<\/p><\/div>"} 5 Enter your Mac's password when prompted. Type in the password that you use to log into your Mac, then press ⏎ Return . Terminal won't display the password characters as you type them. Type in the password that you use to log into your Mac, then press

{"smallUrl":"https:\/\/www.wikihow.com\/images\/thumb\/e\/ed\/987876-21-1.jpg\/v4-460px-987876-21-1.jpg","bigUrl":"\/images\/thumb\/e\/ed\/987876-21-1.jpg\/aid987876-v4-728px-987876-21-1.jpg","smallWidth":460,"smallHeight":345,"bigWidth":"728","bigHeight":"546","licensing":"<div class=\"mw-parser-output\"><p>Image by: Uploader<br>

License: <a target=\"_blank\" rel=\"nofollow noreferrer noopener\" class=\"external text\" href=\"https:\/\/creativecommons.org\/licenses\/by\/3.0\/\">Creative Commons<\/a>

<\/p><\/div>"} 6 Move the blinking cursor down to the bottom of the page. To do so, press the ↓ key until the cursor is below the last line of text on the page.

{"smallUrl":"https:\/\/www.wikihow.com\/images\/thumb\/2\/2f\/987876-24-1.jpg\/v4-460px-987876-24-1.jpg","bigUrl":"\/images\/thumb\/2\/2f\/987876-24-1.jpg\/aid987876-v4-728px-987876-24-1.jpg","smallWidth":460,"smallHeight":346,"bigWidth":"728","bigHeight":"548","licensing":"<div class=\"mw-parser-output\"><p>Image by: Uploader<br>

License: <a target=\"_blank\" rel=\"nofollow noreferrer noopener\" class=\"external text\" href=\"https:\/\/creativecommons.org\/licenses\/by\/3.0\/\">Creative Commons<\/a>

<\/p><\/div>"} 9 Type the address of the site you want to block. For example, if you wanted to block Google, you would type www.google.com . This line would then read 127.0.0.1 www.google.com .

. If you want to be as thorough as possible, enter different variations of the address (e.g., "google.com" and "https://www.google.com/") as well.

If you're blocking sites on Google Chrome, you'll need to place a space and then the "www.[site].com" version of the website's address after the "[site].com" version. To block Facebook, for example, you would type in 127.0.0.1 facebook.com www.facebook.com . For example, if you wanted to block Google, you would type

{"smallUrl":"https:\/\/www.wikihow.com\/images\/thumb\/5\/54\/987876-25-1.jpg\/v4-460px-987876-25-1.jpg","bigUrl":"\/images\/thumb\/5\/54\/987876-25-1.jpg\/aid987876-v4-728px-987876-25-1.jpg","smallWidth":460,"smallHeight":341,"bigWidth":"728","bigHeight":"540","licensing":"<div class=\"mw-parser-output\"><p>Image by: Uploader<br>

License: <a target=\"_blank\" rel=\"nofollow noreferrer noopener\" class=\"external text\" href=\"https:\/\/creativecommons.org\/licenses\/by\/3.0\/\">Creative Commons<\/a>

<\/p><\/div>"} 10 Press ⏎ Return . This will tell your computer to redirect the website to your loopback address instead. You can add as many sites as you want to block, one per line, using the same number (127.0.0.1) as before. This will tell your computer to redirect the website to your loopback address instead.

{"smallUrl":"https:\/\/www.wikihow.com\/images\/thumb\/b\/bf\/987876-27-1.jpg\/v4-460px-987876-27-1.jpg","bigUrl":"\/images\/thumb\/b\/bf\/987876-27-1.jpg\/aid987876-v4-728px-987876-27-1.jpg","smallWidth":460,"smallHeight":346,"bigWidth":"728","bigHeight":"548","licensing":"<div class=\"mw-parser-output\"><p>Image by: Uploader<br>

License: <a target=\"_blank\" rel=\"nofollow noreferrer noopener\" class=\"external text\" href=\"https:\/\/creativecommons.org\/licenses\/by\/3.0\/\">Creative Commons<\/a>

<\/p><\/div>"} 12 Press Y to save your changes. It will then ask you what filename you'd like to save it as. You want to overwrite the original hosts file, so don't change the filename.