What is the Hosts file? Uses and how to edit Hosts filePOSTED BY TIPS INFORMATION POSTED ON 8:02 AM WITH 2 COMMENTSFrom the home network to block Facebook so the vast majority of people who use computers know to file hosts in the computer. Phrases that are looking pretty much the host file is that facebook (written properly as hosts but users or engine is the host should occur this confusion). So have you ever wondered: what is the hosts File, use the file hosts or editing the hosts file?. In the morning news today, I will go to the essential key points about the questions unfinished. Knowledge is not new but useful supplements for which your understanding on a more intensive and diverse.The main content of the article:What is the Hosts file?The use of the file hostsHow to edit hosts fileWindows hosts fileWindows hosts fileIn the computer there are many mysterious files need to explore. In which file hosts probably reach and manipulate the most, by its function, and above all that anyone can understand what it is after a few times watching the article and edit it. Myself also regularly work with it more or less has little experience to share for you. We go into the first problem, which is the concept of the file hosts.What is the Hosts file?In the Windows operating system, Linux, Mac, File Hosts stored IP information of the servers and domains at each computer. Understand that simply you can navigate to any other IP domain or blocking access.# Copyright (c) 1993-2009 Microsoft Corp.## This is a sample HOSTS file used by Microsoft TCP/IP for Windows.## This file contains the mappings of IP addresses to host names. 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:## 102.54.94.97 rhino.acme.com # source server# 38.25.63.10 x.acme.com # x client host# localhost name resolution is handled within DNS itself.# 127.0.0.1 localhost#:: 1 localhostOf which:#: Refers to notesthe local ip address is 127.0.0.1. More sites on this then the automatically blocked.The example above used other Ip ho redirection.Default content in the file hosts are just hints, annotations. You can add unlimited new Ip, domain name service for your purposes. First, you must know the feldspars of the file hosts is like would have.The use of the file hostsRedirect WebsiteOpen the hosts file as instructed above, and add at the end with the content123,456,789 xxx.comWhere: 123,456,789 is transferred to IP, xxx.com is website that when typing up your browser will be pointing through the other ip. This way is extremely useful, as you often see people sharing the file hosts on facebook.In addition, this is also a way for you to test (test) site before pointing it on domain name. Themselves well or perform this method and I enjoyed Block any WebsiteStill the same way as above but here is always 127.0.0.1 IP because it is the local ip. Every site gets this ip assignment could not be reached. For example you want to block black web to not for children under 18 years of age to access it to see you add at the end of the host file content lines: 127.0.0.1 xxx.com. Which is black, each site xxx.com 1 page then down the line. Accidental net you see air in that place must go to those hundreds of black web fraud "> <Quick access to any Web page 1For example, instead of typing phanmemaz.com, you only need to type n and press Enter is already on the Blog. Do the stars or so?Add at the end of the file hosts: 128,199,212,189 nWhere: 128,199,212,189 is the ip of phanmemaz.com. Replace with the page you want. n is the character off enter on browser.Assign the local domain nameIf there are 1 Server internally, you can quick access the router's configuration page by adding the file hosts: 192.168.0.1 router. In that 192.168.0.1 is the ip address the router configuration. This way, you do not need to to so much =. =!Run the Web ServerIf you are managing multiple Web sites on the same host or vps, you can test the web server by adding the file hosts. For example with nguyenhaiblog.com and hinhnendl.com the same run on 1 vps have ip is: 128,199,212,189 then you add the following:128,199,212,189 phanmemaz.com 128,199,212,189 hinhnendl.comIf the domain access 2 off 2 different pages, the web server has been successfully configured. (This is also not very popular with ordinary users should you keep despite that forget about it).When taking the file hosts, depending on the cases that you choose above. The problem arises: how to edit the hosts fileHow to edit Hosts fileOn the Windows operating system, the hosts file is stored in the directory location: C:WIN
đang được dịch, vui lòng đợi..
