Categories
Browsers Internet Laptop Microsoft

How to block/unblock a website on your computer

If you would like to block/unblock a website from being viewed on your Windows computer, follow these steps:

C:\WINDOWS\system32\drivers\etc

First backup thehosts file.
Open hosts file with notepad.
At the end of the line you can see as per below.

127.0.0.1       localhost

Append the following line at the end

127.0.0.1       BlockSitename.com

# replace the BlockSitename.com with the site name that you want to block.

then go to Start->Run-> type ipconfig /flushdns

Note: That will only stop the domain name to go to the website but if you know the IP address of the site from DnsStuff or NetworkTools then you can browse the site.

'Coz sharing is caring

By Swatantra Kumar

Swatantra is an engineering leader with a successful record in building, nurturing, managing, and leading a multi-disciplinary, diverse, and distributed team of engineers and managers developing and delivering solutions. Professionally, he oversees solution design-development-delivery, cloud transition, IT strategies, technical and organizational leadership, TOM, IT governance, digital transformation, Innovation, stakeholder management, management consulting, and technology vision & strategy. When he's not working, he enjoys reading about and working with new technologies, and trying to get his friends to make the move to new web trends. He has written, co-written, and published many articles in international journals, on various domains/topics including Open Source, Networks, Low-Code, Mobile Technologies, and Business Intelligence. He made a proposal for an information management system at the University level during his graduation days.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.