Solved

Windows Service to block website

Posted on 2014-04-14
7
180 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
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
Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

 
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

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

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

Suggested Solutions

A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
Performance in games development is paramount: every microsecond counts to be able to do everything in less than 33ms (aiming at 16ms). C# foreach statement is one of the worst performance killers, and here I explain why.
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

773 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