Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 201
  • Last Modified:

Windows Service to block website

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
johny_bravo1
Asked:
johny_bravo1
1 Solution
 
n2fcCommented:
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
 
ste5anSenior DeveloperCommented:
Safer and easier to setup: Use a transparent proxy.
0
 
johny_bravo1Author Commented:
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
NEW Veeam Agent for Microsoft Windows

Backup and recover physical and cloud-based servers and workstations, as well as endpoint devices that belong to remote users. Avoid downtime and data loss quickly and easily for Windows-based physical or public cloud-based workloads!

 
ste5anSenior DeveloperCommented:
When a user can change the host file, he can also kill a running Windows Service..
0
 
johny_bravo1Author Commented:
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
 
ste5anSenior DeveloperCommented:
No. Your users seem to have sufficient permissions to circumvent any local running filter.
0
 
CodeCruiserCommented:
Is proxy server (which is the usual way to implement this filtering) not an option?
0

Featured Post

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now