How to block social networking on Windows

The easiest way is to edit the file C:\WINDOWS\system32\drivers\etc\hosts with any text editor.

Opening it in a text editor, we add lines like the following:

Save the changes to the file.

Similarly, you can block access to other sites.

After editing, you can change the attributes of the file by clicking on it with the right mouse button and ticking “Read Only”, “Hidden”. Click “OK” to apply the changes. Now the file cannot be edited without unchecking the “Read Only” checkbox and it will be invisible until you check the “Show hidden files and folders” checkbox in the “Control Panel” in the “Folder Options”.

I note that some antiviruses and anti-virus utilities can return the hosts file to the standard state.

Leave a comment

Leave a Reply