Click here to Skip to main content
15,888,208 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi Everyone ...

i want to make a software( Desktop application ) in C# by which i can block websites .
how i can block those specific urls using C# ? means urls will be blocked
in Mozila firefox and Google Chrome or other popular browsers?

Thank You
Posted

1 solution

The simplest way would be to update the hosts file. You could just write an application to wrap that process, but it won't be that effective because the user with admin privilege can just go in and alter the file to open up those sites.
 
Share this answer
 
Comments
krushna chandra jena 4-Oct-12 10:20am    
host file is used only for Internet Explorer only...then what about other browsers ?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900