0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Windows で一時的なアクセスブロック方法まとめ

Posted at

ファイアウォールによって特定のIPやドメインへのアクセスがブロックされてしまった際の動作をチェックしたい時があり、自分用としてメモ。

Edge, Chrome のデベロッパーツール(F12)で一時的にブロック

手順:

  1. EdgeまたはChromeで F12キー を押して「デベロッパーツール」を開く
  2. 「Network」タブ を開き、ページをリロード
  3. ブロックしたいリクエストを右クリックして 「Block request domain」 を選択
  4. 該当のドメインがブロックされ、再読み込みすると適用される。 解除したい場合は、「Unblock」 をクリック

Windows「hosts」ファイルを編集(OS全体に影響)

手順

  1. メモ帳を管理者として開く
  2. C:\Windows\System32\drivers\etc\hosts を開く
  3. ファイル末尾に「127.0.0.1 example.com」を追加
  4. 保存後、コマンドプロンプトで「ipconfig /flushdns」を実行
  5. 解除するときは、該当行を削除して保存
0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?