I need a way to programaticaly block and then later unblock specific websites based on their domain names. I only need to block browsers (so http & https would be sufficient, I guess?) but not just Internet Explorer, it should also work for anyone trying to run Chrome or Firefox too.
This needs to work on Windows XP and be usable from a .NET program (Vb.net or C#).
(ps., I had found this question: How to unblock website which is blocked, using C#? which seems to be saying the same thing, however at the time I could not understand it. Now I see it, thanks all.)
Thanks,
This line in the hosts file will redirect to localhost. Though I have nothing against Nascar 😉
Block websites using a hosts file.