hosts 파일을 이용하여 특정 사이트만 차단할 수 있습니다.
c:windows/system32/drivers/etc/ 경로에서
hosts 파일을 메모장으로 엽니다..
아래는 hosts 파일의 기본내용입니다.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
# 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 localhost ← 이 부분을 수정하여 사용합니다.
예를들어 네이버를 차단하고 싶다면
127.0.0.1 www.naver.com 을 한줄 더 추가해주시면 됍니다.
추가하고 싶은만큼 줄을 더 늘려가며 추가하면 됍니다.
단, http:// 를 붙이지 말고 / 도 넣으면 안됩니다.
수정 추가 후 파일을 저장해주시면 됍니다.
아래는 예제입니다.
서든어택과 메이플스토리를 차단한 모습입니다.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
# 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 suddenattack.netmarble.net
127.0.0.1 www.maplestory.com
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━