Windows Service to block website

Posted on 2014-04-14
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
Question by:johny_bravo1
LVL 19

Accepted Solution

n2fc earned 500 total points
ID: 39998723
Easier to block the website by adding an entry to the "hosts" file...

LVL 32

Expert Comment

by:Stefan Hoffmann
ID: 39998781
Safer and easier to setup: Use a transparent proxy.

Author Comment

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 ?
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..

Author Comment

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.
LVL 32

Expert Comment

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

Expert Comment

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

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 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 ( First, Just open a new email message.  In the To field, type your recipient's fax number You can even send a secure international fax — just include t…
Here's a very brief overview of the methods PRTG Network Monitor ( 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