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
LVL 8
Johny BravoAsked:
Who is Participating?
 
n2fcCommented:
Easier to block the website by adding an entry to the "hosts" file...

See:
http://winhelp2002.mvps.org/hosts.htm
http://en.wikipedia.org/wiki/Hosts_(file)
0
 
ste5anSenior DeveloperCommented:
Safer and easier to setup: Use a transparent proxy.
0
 
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 ?
0
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..
0
 
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.
0
 
ste5anSenior DeveloperCommented:
No. Your users seem to have sufficient permissions to circumvent any local running filter.
0
 
CodeCruiserCommented:
Is proxy server (which is the usual way to implement this filtering) not an option?
0
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.