1/6/2023 0 Comments Host website on windows 10![]() Type cmd in the text input field, and then press OK. Step 1: Press Windows R keys together to open the Run dialog box. You can test the edits made in the hosts file by using the ping command in the Command Prompt. Here’s how to do that. Open the blocked website in the web browser. There is no need to restart your computer. Right-click on the hosts file, and click on Properties. Step 10: Now, go to back the Hosts file directory. Step 9: When you have added the websites that you want to block, click on the File button in the Menu bar, and then click Save to save the hosts file. I have added the last three entries about the Phozeca website. Step 8: Go to the bottom of the hosts file, and type the website names in the proper format to block them. Step 7: As you can see, the hosts file is just a text file. Step 6: Click on the hosts file, and then click the Open button. Select All Files (*.*) from the file-type drop-down menu to be able to view the hosts file. Step 5: In the browse window, go to the hosts file directory. Click Open to locate and open the hosts file. Step 4: Click the File button in the Notepad Menu bar. ![]() You need elevated permissions to edit the Hosts file. Type notepad to search Notepad application, right-click on the Notepad search result, and then left click Run as administrator to open Notepad with Administrative privileges. Step 3: Type Windows S keys together to open Windows Search. Step 2: In the hosts file Properties window, clear the Read-only checkbox. Hosts file Location: C:\Windows\System32\drivers\etc How to Block Websites Using Hosts file in Windows 10? The Hosts file is located deep inside your system drive, C. ![]() Now, when you type and enter in the URL bar of your web browser, it will open instead of. Next, type the domain name of the website that you are redirecting to the IP address that you just typed.įor Example, if you want to redirect to, then type the IP address of, and then type in the Hosts file. Type the IP address of that website where you want the other website to be redirected to. Using the same method, you can redirect a website to another website. It will not be able to able to access this website, and displays an error message. The web browser makes no outgoing requests from your computer to the Internet. Now, when you type and enter that domain name into the URL bar of your web browser, it will be mapped to the IP address that you mentioned for it in the Hosts file instead of its original IP address, which is your own computer, the local host. Next, give a space or a tab, and then type the website domain name that you want to block. Type one of the three IP addresses mentioned in the previous section. ![]() Any number of websites mapped to any of these IP addresses in the Hosts file redirect to your computer itself, which is the local host. How does the Hosts file Workīefore be understand the working of Hosts file, we need to know about 127.0.0.1. If a domain name is mentioned in your hosts file then the operating system won’t use the DNS for its resolution, it reads from the hosts file and performs accordingly. Hosts file overrides the DNS settings of the websites mentioned in it on that computer. It boots with the computer, and is already working for you. You do not require a program to run the Hosts file. The Hosts file is an extension-less system file that is used to map host names or website domain names to the IP addresses.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |