How did you unblock? All that's necessary is to add #
to the beginning of the line, or delete the line entirely.
Save, reboot, done.
Check the file you saved actually saved to the correct place. Some systems will not let you edit hosts directly & will save a copy somewhere else, rather than back over your original file.
On Windows you should edit the file using Notepad run as Administrator.
Full instructions, from Liquidweb including DNS flush without reboot.
In Windows 10, your hosts’ file is located at:
C:\Windows\System32\drivers\etc\hosts. You will need to edit the file
with administrative privileges.
- Click the Windows button and type Notepad in the search bar.
- Right click on Notepad and then Run as Administrator.
- You’ll be asked, “Do you want to allow this app to make changes to your device?”. Choose Yes.
- In Notepad, choose File then Open
- Navigate to C:\Windows\System32\drivers\etc\hosts or click the address bar at the top and paste in the path and choose Enter. If you
don’t readily see the host file in the /etc directory then select All
files from the File name: drop-down list, then click on the hosts
file.
- Add the appropriate IP and hostname at the end of your hosts’ file, select save and close the file.
- Finally, you will want to flush your DNS cache for your computer to recognize changes to the file. Click the Windows button and search
command prompt.
- Right-click on command prompt and then select Run as Administrator.
- You’ll be asked, “Do you want to allow this app to make changes to your device?”. Choose Yes.
- Type the following command in the terminal and press Enter
ipconfig /flushdns