Improve company productivity with a Business Account.Sign Up

  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 204
  • Last Modified:

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 Bravo
Johny Bravo
1 Solution
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 ?
Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

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.

Join & Write a Comment

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now