เคล็ดลับเกี่ยวกับคอมพิวเตอร์

mod_vvisit_countermod_vvisit_countermod_vvisit_countermod_vvisit_countermod_vvisit_countermod_vvisit_counter
mod_vvisit_counterToday29
mod_vvisit_counterYesterday196
mod_vvisit_counterThis week872
mod_vvisit_counterLast week912
mod_vvisit_counterThis month3313
mod_vvisit_counterLast month4251
mod_vvisit_counterAll days66524

We have: 1 guests, 1 bots online
Your IP: 38.107.179.222
 , 
Today: ก.พ. 23, 2012

Designed by:
วันอาทิตย์ที่ 23 มกราคม 2011 เวลา 21:43 น.

ประโยชน์ของไฟล์ hosts ้


สวัสดีครับ วันนี้จะมาแนะนำให้ทุกคนได้รู้จักไฟล์ hosts กันครับ
ไฟล์ hosts เป็นไฟล์ที่ใช้เก็บค่าการจับคู่ของ IP กับชื่อโฮส โดยเป็นการบ่งชี้ว่าถ้ามีการเรียกไปยังชื่อโฮสหนึ่ง ก็จะมีการวิ่งไปที่ไอพีที่มีการจับคู่ไว้ในไฟล์โฮสครับ ตัวอย่างเช่น

102.54.94.97     rhino.acme.com

หมายความว่าหากมีการเรียก rhino.acme.com ผ่าน web browser หรือแม้แต่การ ping ก็ตาม ก็จะมีการวิ่งไปที่ไอพี 102.54.94.97 นั่นเอง

โดยไฟล์  hosts จะมีอยู่ที่เครื่องของเราอย่างแน่นอนครับที่ C:\WINDOWS\system32\drivers\etc หากเป็น windows อื่นๆ ที่อยู่ก็อาจจะแตกต่างกันเล็กน้อยครับ

คราวนี้มาดูประโยชน์ของไฟล์ host กันครับ ที่ผมจะแนะนำก็คือการ block website ครับ ทำง่ายๆ ครับดังตัวอย่างด้านล่าง


# Copyright (c) 1993-1999 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

#127.0.0.1      localhost
127.0.0.1       facebook.com


จากตัวอย่างอธิบายได้ว่ากำหนดให้เมื่อเราเรียก facebook.com ผ่าน web browser ก็จะมีการเรียกไปที่ไอพี่เครื่องเราแทนทำให้ไม่สามารถเข้า google ได้ครับ
สำหรับวิธีนี้หากคนที่ไม่รู้จักไฟล์ hosts ก็อาจจะงงเป็นไก่ตาแตกได้ครับ แต่สำหรับคนที่รู้เราก็อาจจะมีการป้องกันการแก้ไขไฟล์ host ด้วยวิธีต่างๆ ตามแต่ถนัดครับ

ป.ล. แนะนำกันไว้เผื่อเอาไปใช้ประโยชน์กันครับ จะเอาไว้บล็อกไม่ให้ลูกเข้า website ไม่เหมาะสมก็ได้นะครับ อันนี้เห็นด้วยที่สุดครับ



แก้ไขล่าสุด ใน วันอาทิตย์ที่ 23 มกราคม 2011 เวลา 21:55 น.
 

ลิงค์เพื่อนบ้าน

Movies Seller

watprachasanti.com

wipatravel.com

Submit your website to 20 Search Engines - FREE with ineedhits!