Table of Contents

Windows

  1. Backup C:\Windows\System32\drivers\etc\hosts
  2. Open hosts file and add localhost IP adress 127.0.0.1 and domains of websites that you want to block
# Block Lists
127.0.0.1 twitter.com
127.0.0.1 x.com
  1. Save it

All websites you added in hosts will be blocked on any web browsers.

Save your time!

(Note: Any methods, such as ping command, also will be blocked on this PC)