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 WebsiteVẫn giống cách trên nhưng IP ở đây luôn là 127.0.0.1 vì đây là ip cục bộ. Mọi trang web bị gán ip này đều không thể kết nối được. Ví dụ bạn muốn chặn web đen để không cho trẻ em dưới 18 tuổi truy cập vào đó để xem thì bạn hãy thêm vào cuối nội dung file host dòng: 127.0.0.1 xxx.com . Trong đó xxx.com là trang web đen, mỗi 1 trang thì xuống dòng nhé. Tình cờ ra quán net mình thấy máy ở đó đặt phải đến mấy trăm web đen lận >”<Truy cập nhanh 1 trang Web bất kìVí dụ thay vì gõ phanmemaz.com thì bạn chỉ cần nhập n và ấn Enter là đã vào được Blog. Làm sao hay vậy ?Thêm vào cuối file hosts: 128.199.212.189 nTrong đó: 128.199.212.189 là ip của phanmemaz.com. Thay thế với trang bạn muốn. n là ký tự tắt nhập trên trình duyệt.Ấn định các tên miền cục bộNếu có 1 Server nội bộ thì bạn có thể truy cập nhanh vào trang cấu hình của router bằng cách thêm vào file hosts: 192.168.0.1 router. Trong đó 192.168.0.1 là địa chỉ ip cấu hình router. Cách này thì bạn cũng không cần để ý đến lắm =.=!Chạy thử Web ServerNếu bạn đang quản lý nhiều website trên cùng một host hoặc vps thì có thể kiểm thử web server bằng cách thêm vào file hosts. Ví dụ vơi nguyenhaiblog.com và hinhnendl.com cùng chạy trên 1 vps có ip là: 128.199.212.189 thì bạn thêm như sau: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..
