Solved

Windows Service to block website

Posted on 2014-04-14
7
192 Views
Last Modified: 2014-05-07
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
0
Comment
Question by:johny_bravo1
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
7 Comments
 
LVL 20

Accepted Solution

by:
n2fc earned 500 total points
ID: 39998723
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
 
LVL 34

Expert Comment

by:ste5an
ID: 39998781
Safer and easier to setup: Use a transparent proxy.
0
 
LVL 8

Author Comment

by:johny_bravo1
ID: 39999442
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
Webinar: Aligning, Automating, Winning

Join Dan Russo, Senior Manager of Operations Intelligence, for an in-depth discussion on how Dealertrack, leading provider of integrated digital solutions for the automotive industry, transformed their DevOps processes to increase collaboration and move with greater velocity.

 
LVL 34

Expert Comment

by:ste5an
ID: 39999583
When a user can change the host file, he can also kill a running Windows Service..
0
 
LVL 8

Author Comment

by:johny_bravo1
ID: 39999611
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
 
LVL 34

Expert Comment

by:ste5an
ID: 39999706
No. Your users seem to have sufficient permissions to circumvent any local running filter.
0
 
LVL 83

Expert Comment

by:CodeCruiser
ID: 40000093
Is proxy server (which is the usual way to implement this filtering) not an option?
0

Featured Post

Revamp Your Training Process

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…

729 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question