Geekpedia Forums Logo

How to Developing an Windows application that blocks websites

by chaithanya m on Friday, October 9th - 2:05 AM



Hai
I am trying to develop a windows application in which I have to block certain websites.
I have tried to write to notepad file(C:\windows\system32\drivers\etc\hosts) file but its is not working.
Can some one help me how to get the urls from the browser and check if it should be blocked or allowed and allow or deney the users request.

Thanking You
Chaithu

The host file is "Read Only". Try to change it using c#.. i don't know how to do it though...