Windows Service to block website

Hello Experts,

I have a task of writing windows service, that will run in the background and when user tries to access a website from any browser, it will block the website if it is not allowed.

I mean blocked websites should not be displayed.Users are smart enough to disable the firewalls.

Any help is really appreciated. Thanks
Johny BravoAsked:
Who is Participating?
Easier to block the website by adding an entry to the "hosts" file...

ste5anSenior DeveloperCommented:
Safer and easier to setup: Use a transparent proxy.
Johny BravoAuthor Commented:
Hi Experts,
Thanks for  the replies.

But my problem with the host file is that, the user can change the host file to get the web access.

What about the Windows Service ?
Cloud Class® Course: MCSA MCSE Windows Server 2012

This course teaches how to install and configure Windows Server 2012 R2.  It is the first step on your path to becoming a Microsoft Certified Solutions Expert (MCSE).

ste5anSenior DeveloperCommented:
When a user can change the host file, he can also kill a running Windows Service..
Johny BravoAuthor Commented:
Ok agreed.

Is there anyway that i will store the log of the visited websites hidden somewhere.

In case if user change the hosts file.
ste5anSenior DeveloperCommented:
No. Your users seem to have sufficient permissions to circumvent any local running filter.
Is proxy server (which is the usual way to implement this filtering) not an option?
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.