The command line in Microsoft Windows allows you to quickly run a particular command and receive an immediate response from the computer in the window prompt. Specific websites can be blocked from the command line by running a command to open the Windows Hosts file, a text file in Notepad that controls access to the Internet. Adding the website you wish to block to the Hosts file and saving it will prevent any further access to that specific website domain name. Writer Bio

How to Block Certain Websites From My Command Line - 61