Solved

Windows Service to block website

Posted on 2014-04-14
7
173 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 19

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 32

Expert Comment

by:Stefan Hoffmann
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
What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

 
LVL 32

Expert Comment

by:Stefan Hoffmann
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 32

Expert Comment

by:Stefan Hoffmann
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

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

It’s quite interesting for me as I worked with Excel using vb.net for some time. Here are some topics which I know want to share with others whom this might help. First of all if you are working with Excel then you need to Download the Following …
Introduction Hi all and welcome to my first article on Experts Exchange. A while ago, someone asked me if i could do some tutorials on object oriented programming. I decided to do them on C#. Now you may ask me, why's that? Well, one of the re…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

707 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now