主題: Windows
Windows+R キーを押して、[ファイル名を指定して実行]ダイアログボックスを開きます。
次の文字列を入力して、Enter キーを押します。
%systemroot% \system32\drivers\etc
hosts ファイルを右クリックして[名前の変更]をクリックします。
次の文字列を入力して Enter キーを押します。
Hosts.old
etc フォルダ内の空白領域を右クリックし、[新規作成]>[テキスト ドキュメント]を選択します。
次の文字列を入力して Enter キーを押します。
hosts
確認のダイアログボックスで[はい]をクリックします。
hosts ファイルを右クリックし、[プログラムから開く]または[開く]をクリックします。
プログラムの一覧で[メモ帳]をダブルクリックします。
使用している Windows のバージョンに応じて、以下のいずれかのテキストを hosts ファイルにコピーします。
Windows 11/10/8/7/Vista の場合:
# Copyright (c) 1993-2006 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
# ::1 localhost Windows XP の場合:
# 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
[ファイル]メニューで、[保存]を選択します。
[ファイル]メニューで[終了]を選択します。
この記事は役に立ちましたか?