Procedure to block any website
Agent procedure to block any website. The website link is provided by the admin when the agent procedure is run.
It's working on Windows 7 and Windows 10. Did not try 8. BUT there are two things that prevent 5 stars: you must type both entries www.facebook.com and facebook.com. It should add the two lines with and w/o www on the beginning. Also, I could not find how to unblock unless going manual to the machine and deleting the lines. Any way to implement that?
How can I undo a block?
Nevermind. I saw it just edits the hosts file.
One last post- Is there a way to modify the script to undo changes? Or make a new one? Currently I would have to go to every machine and undo the writes to the host file. I will try to play with it and see what I can do but didn't know if one was already written.