Solved

Windows Service to block website

Posted on 2014-04-14
7
186 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 33

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
Forrester Webinar: xMatters Delivers 261% ROI

Guest speaker Dean Davison, Forrester Principal Consultant, explains how a Fortune 500 communication company using xMatters found these results: Achieved a 261% ROI, Experienced $753,280 in net present value benefits over 3 years and Reduced MTTR by 91% for tier 1 incidents.

 
LVL 33

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 33

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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Need to sort columns in DataGridView 4 41
Installing .NET 3.5 on Windows Server 2012 1 64
VB.NET System.NullReferenceException 1 27
Web page design problem 3 20
Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…
Finding and deleting duplicate (picture) files can be a time consuming task. My wife and I, our three kids and their families all share one dilemma: Managing our pictures. Between desktops, laptops, phones, tablets, and cameras; over the last decade…

696 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