Windows 11, 10 and 8
- Click on the Start windows icon button to open the menu
- Type Notepad
- Right-click on Notepad and choose Run as administrator
- If you are prompted for an administrator password or for a confirmation, type the password, or click Allow or Yes.
- In Notepad, click File and Open, and navigate to the hosts file. It should be in
C:\Windows\System32\drivers\etc
- If the folder appears blank, you will need to click the file extension dropdown where it says Text Document (*.txt), and change it to All Files (*.*).
- Open the file called hosts.
- In the Hosts file, make the necessary changes. For example, to point a domain name to an IP address, on a new line, enter 1.1.1.1 mydomain.com
- click Save on the File menu.
Windows Vista and Windows 7
- Click Start windows icon,
- Click All Programs
- Click Accessories
- Right-click Notepad, and then click Run as administrator.
- If you are prompted for an administrator password or for a confirmation, type the password, or click Allow or Yes.
- In Notepad, click File and Open, and navigate to the hosts file. It should be in
C:\Windows\System32\drivers\etc
- If the folder appears blank, you will need to click the file extension dropdown where it says Text Document (*.txt), and change it to All Files (*.*).
- Open the file called hosts.
- In the Hosts file, make the necessary changes. For example, to point a domain name to an IP address, on a new line, enter 1.1.1.1 mydomain.com
- click Save on the File menu.
Let me know if this helped. Follow me on Twitter, Facebook and YouTube, or 🍊 buy me a smoothie.