How To Edit Your Hosts File


Windows

Step 1 – Search for Notepad, then right-click on Notepad in the search results list, and choose Run as administrator. If you’re using Windows 10, a shortcut to Notepad is in the Start Menu.

Step 2 – Once NotePad is open, Go to File -> Open… and copy/paste the following file path:
c:\windows\system32\drivers\etc\hosts
Click open to start editing the hosts file.

Step 3 – Make your desired additions or alterations. Most likely you’ll be pasting something at the bottom of the document.

Tip: Adding a hashtag to the start of a line will disable it. For example, the line
# 128.91.58.195 origin.factcheck.org
won’t have any effect, but it will retain the host assignment for later use.

Step 4 – Go to File -> Save to commit the change that we just made.


macOS

Step 1 – Go to and Open Terminal either by searching for it or by locating it under the Applications folder

Step 2 – Once Terminal is open, copy/paste or type the following command:
sudo nano /etc/hosts
and press enter to execute the command. You’ll be prompted to enter your password to proceed.

Tip: Not seeing anything when you type your password? Don’t panic! That’s intentional. When entering your password through terminal the text is invisible for security purposes.

Step 3 – Make your desired additions or alterations. Most likely you’ll be pasting something at the bottom of the document.

Tip: Adding a hashtag to the start of a line will disable it. For example, the line
# 128.91.58.195 origin.factcheck.org
won’t have any effect, but it will retain the host assignment for later use.

Step 4 – Press ^X (hold the control key and press the X key) to save and exit. You’ll see a prompt at the bottom of the text editor asking you to confirm your changes (press the Y key) as well as the file to save to (just press Enter). You can now safely quit Terminal.