Windows Instructions
- Open Notepad as Administrator
- Click Start
- Search for Notepad
- Right-click and select Run as Administrator
- Open the hosts file located at:
C:\Windows\System32\drivers\etc\hosts
If you do not see the file, change file type to "All Files".
- Add the following lines at the bottom:
123.123.123.123 example.com 123.123.123.123 www.example.com
- Save the file.
Linux Instructions
- Open Terminal.
- Edit the hosts file:
sudo nano /etc/hosts
- Add the following lines at the bottom:
123.123.123.123 example.com 123.123.123.123 www.example.com
- Save and exit:
- Press CTRL + X
- Press Y
- Press Enter
macOS Instructions
- Open Terminal.
- Edit the hosts file:
sudo nano /etc/hosts
- Add the following lines at the bottom:
123.123.123.123 example.com 123.123.123.123 www.example.com
- Save and exit:
- Press CTRL + X
- Press Y
- Press Enter