File Hosts là gì ? Công dụng và cách chỉnh sửa file HostsPOSTED BY THỦ dịch - File Hosts là gì ? Công dụng và cách chỉnh sửa file HostsPOSTED BY THỦ Anh làm thế nào để nói

File Hosts là gì ? Công dụng và các

File Hosts là gì ? Công dụng và cách chỉnh sửa file Hosts
POSTED BY THỦ THUẬT TIN HỌC POSTED ON 8:02 AM WITH 2 COMMENTS
Từ ngày các nhà mạng chặn Facebook nên đại đa số người sử dụng máy tính đều biết tới file hosts trong máy tính. Cụm từ mà được tìm kiếm khá nhiều đó chính là file host facebook (viết đúng là hosts nhưng người dùng hay kiếm là host nên xảy ra sự nhầm lẫn này). Vậy bạn đã bao giờ tự hỏi: File hosts là gì, công dụng file hosts hay cách chỉnh sửa file hosts chưa ?. Trong thủ thuật tin học buổi sáng ngày hôm nay, mình sẽ đi vào khái quát những điểm chính về những thắc mắc còn dang dở đó. Kiến thức không phải là mới nhưng sẽ cực kì hữu ích, bổ sung cho vốn hiểu biết của bạn ngày một đa dạng và chuyên sâu hơn.

Nội dung chính của bài:
File Hosts là gì ?
Công dụng của file hosts
Cách chỉnh sửa file hosts

File hosts Windows
File hosts Windows

Trong máy tính có rất nhiều tập tin bí ẩn cần khám phá. Trong đó file hosts có lẽ được tiếp cận và thao tác nhiều nhất, bởi chức năng của nó, và trên hết là ai cũng có thể hiểu được nó là gì sau 1 vài lần xem bài và chỉnh sửa nó. Bản thân mình cũng thường xuyên làm việc với nó nên ít nhiều có chút kinh nghiệm muốn chia sẻ cho các bạn. Chúng ta cùng đi vào vấn đề trước tiên, đó là khái niệm về file hosts.

File Hosts là gì ?
Trong các hệ điều hành Windows, Linux, Mac, File Hosts được lưu trữ thông tin IP của các máy chủ và tên miền tại máy tính mỗi người. Hiểu đơn giản là bạn có thể điều hướng tên miền sang 1 IP nào khác hoặc chặn truy cập.

# 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 localhost
Trong đó:
#: Dùng để ghi chú
127.0.0.1 là địa chỉ ip cục bộ. Thêm site nào vào đây thì sự tự động bị chặn.
Ví dụ Ip khác ở trên dùng ho việc chuyển hướng.
Mặc định nội dung trong file hosts chỉ là những gợi ý, chú thích. Bạn có thể thêm mới không giới hạn Ip, tên miền phục vụ cho mục đích của mình. Trước tiên thì bạn phải biết công cụng của file hosts là như nào đã.

Công dụng của file hosts

Chuyển hướng Website

Mở file hosts theo hướng dẫn bên trên, và thêm vào cuối với nội dung

123.456.789 xxx.com

Trong đó: 123.456.789 chính là IP được chuyển đến, xxx.com là trang web mà khi gõ lên trình duyệt sẽ được trỏ qua ip kia. Cách này cực kì hữu ích, điển hình là bạn thường thấy người ta chia sẻ file hosts vào facebook đúng không.

Ngoài ra, đây cũng là cách để bạn test (kiểm nghiệm) trang web trước khi trỏ nó về tên miền. Mình cũng hay thực hiện phương pháp này và mình rất thích

Chặn Website bất kì

Vẫ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 n

Trong đó: 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 Server

Nế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.com

Nếu truy cập 2 tên miền ra 2 trang khác nhau thì web server đã cấu hình thành công. (Cái này cũng không phổ biến lắm với người dùng phổ thông nên bạn cứ bất chấp mà quên nó đi).

Khi nắm được công dụng file hosts rồi thì tùy vào từng trường hợp mà bạn chọn phương án ở trên. Vấn đề đặt ra là: Làm thế nào để sửa file hosts
Cách chỉnh sửa file Hosts

Trên hệ điều hành Windows thì file hosts được lưu ở vị trí thư mục: C:WIN
0/5000
Từ: -
Sang: -
Kết quả (Anh) 1: [Sao chép]
Sao chép!
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..
Kết quả (Anh) 2:[Sao chép]
Sao chép!
Hosts file is what? Uses and how to edit the Hosts file
POSTED BY POSTED ON COMPUTER TRICKS WITH 2 8:02 AM COMMENTS
From the Facebook network should block the vast majority of computer users are known hosts file on your computer. Phrase that is searched quite a lot that's facebook hosts file (hosts write properly but the user is or should be the host for this confusion occurs). So have you ever wondered: What are your hosts file, use the hosts file or editing the hosts file yet?. In computing tips today morning, I'll go to generalize the main points of the unfinished questions there. Knowledge is not new but extremely useful, complementing your understanding increasingly diverse and more intensive. The main content of the article: What is the Hosts File? The use of hosts files How to edit file hosts Windows hosts file Windows hOSTS file in the computer files has many mysteries to explore. In the hosts file that may have access and manipulate the most, by its function, and above all, everyone can understand what it is after the first few times view and edit it. Myself also regularly work with it a little more or less of experience you want to share. Let's go to the first issue, which is the concept of the hosts file. File Hosts is what? In the Windows, Linux, Mac, File Hosts stored information of the server IP and domain name in computer each. Simple to understand is that you can navigate to one IP domain name or block 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 nên police kept on the individual line. The IP address shouldnt be placed in the first # followed by column tương ứng host name. # The IP address and the host name separated by at Least nên one # space. # # Nữa, comments (như này) unfortunately be inserted on the individual # lines or the machine name denoted by sau 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 Itself is quản trong DNS resolution. # 127.0.0.1 localhost # :: 1 localhost Where: #: Use to note that ip address 127.0.0.1 locally. Add to this is the site that automatically blocked. Other Ip above example uses redirection coughing. Default content of the hosts file is only hints, annotations. You can add unlimited new IP, domain name serves its purpose. First, you must know the hosts file tool is used is as yet have. The use of the hosts file Redirects Website Open the hosts file according to the instructions above, and additional content at the end xxx.com 123 456 789 Of which: 123 456 .789 is moving to IP, is the site xxx.com when typing on the browser will be pointing through the other ip. This is extremely useful, especially you usually see people on facebook hosts file sharing right. In addition, this is also a way for you to test (test) site before pointing it to the domain. Also performed his or her approach and would love to Block Website any way out but still the same IP 127.0.0.1 here because this is always the local ip. All the sites are being assigned ip can not connect. For example, you want to block porn sites to prevent children under 18 visit there to see you add content to the end of the line hosts file: 127.0.0.1 xxx.com. Among them are websites xxx.com black, then down the line each 1 page offline. By chance I found out the internet cafe where machines have to place hundreds of black web fraud> "< Quick 1 Web site any phanmemaz.com For example, instead of typing, you just enter n and press Enter to have to be blog. How or wrong? Add at the end of the hosts file: 128 199 212 189 n Where: 128 199 212 189 phanmemaz.com is ip. Replace the page you want. n characters are entered in the browser off. Assign the local domain 1 Server internal If you can get quick access to the router's configuration page by adding the hosts file: 192.168.0.1 router. Among them is the ip address 192.168.0.1 router configuration. This way, you do not need to pay attention to much =. =! Run Web Server If you are managing multiple websites on a single host or vps can test the web server by adding the hosts file. Example with nguyenhaiblog.com and running on 1 vps hinhnendl.com ip is: 128 199 212 189, you add the following: 128.199.212.189 phanmemaz.com 128.199.212.189 hinhnendl.com If access 2 of 2 other pages domain together, the web server has been successfully configured. (This is also not very popular with ordinary users should you just forget about it in spite of that). Taking advantage of the hosts file and then, depending on the circumstances that you choose the plan above. The question is: How to edit the hosts file Hosts How to edit files on the Windows operating system, the hosts file is saved in the folder location: C: WIN















































































đang được dịch, vui lòng đợi..
 
Các ngôn ngữ khác
Hỗ trợ công cụ dịch thuật: Albania, Amharic, Anh, Armenia, Azerbaijan, Ba Lan, Ba Tư, Bantu, Basque, Belarus, Bengal, Bosnia, Bulgaria, Bồ Đào Nha, Catalan, Cebuano, Chichewa, Corsi, Creole (Haiti), Croatia, Do Thái, Estonia, Filipino, Frisia, Gael Scotland, Galicia, George, Gujarat, Hausa, Hawaii, Hindi, Hmong, Hungary, Hy Lạp, Hà Lan, Hà Lan (Nam Phi), Hàn, Iceland, Igbo, Ireland, Java, Kannada, Kazakh, Khmer, Kinyarwanda, Klingon, Kurd, Kyrgyz, Latinh, Latvia, Litva, Luxembourg, Lào, Macedonia, Malagasy, Malayalam, Malta, Maori, Marathi, Myanmar, Mã Lai, Mông Cổ, Na Uy, Nepal, Nga, Nhật, Odia (Oriya), Pashto, Pháp, Phát hiện ngôn ngữ, Phần Lan, Punjab, Quốc tế ngữ, Rumani, Samoa, Serbia, Sesotho, Shona, Sindhi, Sinhala, Slovak, Slovenia, Somali, Sunda, Swahili, Séc, Tajik, Tamil, Tatar, Telugu, Thái, Thổ Nhĩ Kỳ, Thụy Điển, Tiếng Indonesia, Tiếng Ý, Trung, Trung (Phồn thể), Turkmen, Tây Ban Nha, Ukraina, Urdu, Uyghur, Uzbek, Việt, Xứ Wales, Yiddish, Yoruba, Zulu, Đan Mạch, Đức, Ả Rập, dịch ngôn ngữ.

Copyright ©2024 I Love Translation. All reserved.

E-mail: