Click here to Skip to main content
15,891,607 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I want to create a small application in which the user can select out of presets of websites (e.g social media preset, would block Instagram, Twitter, Facebook from being accesssed) or they can enter the URL for a website to block.
The user must be able to unblock the website from the application after they initially block it.

How would I create this / What's the code. (C#, VB.net

Thanks.
Much Appreciated.

What I have tried:

Ive tried coding an application where it successfully blocks one website at a time, but inorder to unblock you must manually clear it by going into System 32 -> Drivers -> etc and editing the "hosts" notepad document. I would like to find an easier way.
Posted
Updated 7-May-20 2:37am
Comments
Richard MacCutchan 7-May-20 7:09am    
The easier way is for your code to remove the hosts entries that are blocking websites.

1 solution

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