How to Block Any Website Using Hosts File in Windows 10?<br /><br />Step 1: Click on Search box, and then do a search for 'Notepad.'<br /><br />Step 2: Right click on Notepad, and then click on 'Run as Administrator.'<br /><br />Step 3: Now, go to file, and then click on 'Open.'<br /><br />Step 4: Go to the location of hosts file (C:\Windows\System32\drivers\etc).<br /><br />Step 5: Click on Dropdown in notepad, and then click on 'All Files.'<br /><br />Step 6: Select the hosts file by clicking on it, and then click on open button.<br /><br />Step 7: Now, go to the end of the file, and hit enter.<br /><br />Step 8: In new line type the format like below to block any website.<br /><br /> 127.0.0.1 www.website_that_you_want_to_block.com<br /><br /> so, suppose if i want to block facebook.com, I will type like this:-<br /><br /> 127.0.0.1 www.facebook.com <br /><br />Step 9: After that, click on 'File,' and then click on 'save.'<br /><br />Thanks for watching, please like and subscribe <br /><br />==============================================<br /><br />https://www.facebook.com/HowtoTutorialsByAmit/