Each entry should be kept on an individual line. The IP address should be placed in the first column followed by the corresponding host name. The IP address and the host name should be separated by at least one space. Additionally, comments such as these may be inserted on individual lines or following the machine name denoted by a ' ' symbol.
For example: On the File menu, select Save as , type "hosts" in the File name box as displayed in the following image , and then save the file to the desktop.
Tap and hold or right-click the Hosts file, select Rename , and then rename the file as "Hosts. If you are prompted to enter an administrator password, select Continue. To do this, swipe in from the right edge of the screen, tap Search , type Notepad, and then tap the Notepad icon.
Or, if you are using a mouse, point to the upper-right corner of the screen, move the mouse pointer down, click Search , type Notepad, and then click Notepad. Swipe in from the right edge of the screen, tap Search , type run, and then tap the Run icon.
Or, if you are using a mouse, point to the upper-right corner of the screen, move the mouse pointer down, select Search , type run, and then select the Run icon. Select the Hosts file, select Rename , and then rename the file as "Hosts.
If you are prompted to enter an administrator password, tap or click Continue. You will see options appear on the bottom portion of the Start Page.
Select Run as administrator. Note: Performing this action may cause Windows User Account Control to prompt you with a warning, or if you are logged in as another user, a request for the Administrator password.
This step is necessary to modify system files such as the hosts file. On Windows 98 and Windows 95, the order may be the hostname , IP address. To locate Mac hosts files location: Navigate to the Terminal application. Replace Replace domain. Additional domains, subdomains, or addon domains such as www. To open the terminal: Go to Menu.
Select Applications. Choose Accessories. Enter an invalid or wrong IP address for the site you want to block, and each time you try accessing it, the hosts file will load the IP address you chose. Depending on what you picked, it might c ompletely block the website. You can use the same technique to make the hosts file block malicious sites. There are even lists of hosts file entries such as this one you can download and import into your hosts file to block hundreds of malicious sites or ads.
Another use for the hosts file is to speed up your web browsing. Tip : Learn how to use alternate DNS servers to get faster internet access. You need to know where to go to find the hosts file before you can open it for editing. This issue occurs even though you log on by using an account that has administrative credentials. If you're prompted for an administrator password or for a confirmation, type the password, or click Allow or Yes.
Open the Hosts file or the Lmhosts file, make the necessary changes, and then click Save on the File menu. Skip to main content.
0コメント