1. Launch Notepad
Click the start button and type in Notepad.
2. Select RunAs Administrator
Once you have typed in Notepad, you will be presented with a list of options, select RunAs Administrator
Once you have Notepad Open, click on File then open and navigate to C:\Windows\System32\Drivers\etc.
4. Open Hosts
Once you have navigated to the location, you will see a blank page as it is listing .txt files, change it to "All Files" in the bottom right.
5. Enter Information
Enter in the information like 127.0.0.1 and the url for example outlook.office365.com, now click on File and Save or Ctrl S.