Click here to Skip to main content
11,491,742 members (59,110 online)
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C#
I need block all websites and after unblock some pages
in c#
Posted 18-Nov-12 12:56pm
RAFARIA109
Edited 18-Nov-12 12:57pm
v2
Comments
Sergey Alexandrovich Kryukov at 18-Nov-12 18:07pm
   
It depends on the level you want to block them. Any why?
--SA
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

add the url that you want to block in HOST file whicho you can fine in C:\Windows\System32\Drivers\etc

e.g


127.0.0.1 youtube.com
127.0.0.1 www.youtube.com

in order to make change you will have to run notepad.exe as admin then open the file in the notepad then do the alteration.
  Permalink  
v2
Comments
Richard MacCutchan at 2-Dec-14 7:16am
   
Please do not post to questions that are more than two years old.

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

  Print Answers RSS
0 Sergey Alexandrovich Kryukov 550
1 Maciej Los 276
2 Sascha Lefèvre 265
3 Andy Lanng 249
4 F-ES Sitecore 230
0 Sergey Alexandrovich Kryukov 9,829
1 OriginalGriff 8,530
2 Sascha Lefèvre 3,579
3 Maciej Los 3,332
4 Richard Deeming 2,370


Advertise | Privacy | Mobile
Web02 | 2.8.150520.1 | Last Updated 2 Dec 2014
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100