C# - 如何阻止除一些网站之外的所有网站
问题描述:
我需要阻止所有网站并在解锁一些页面之后
在c#
I need block all websites and after unblock some pages
in c#
答
中添加要在HOST中阻止的网址您可以在C:\ Windows \ System32 \Drivers中找到文件。
例如
127.0.0.1 youtube.com
127.0.0.1 www.youtube.com
in要进行更改,您必须以管理员身份运行notepad.exe,然后在记事本中打开文件,然后进行更改。
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.
看看:
如何使用vb.net阻止任何网站或c#.net [ ^ ]
http://www.c-sharpcorner.com/Forums/Thre ad / 67458 / [ ^ ]
http://in.answers.yahoo.com/question/index ?qid = 20120523040336AAstlDW [ ^ ]
希望有所帮助
Have a look:
How to block any website using vb.net or c#.net[^]
http://www.c-sharpcorner.com/Forums/Thread/67458/[^]
http://in.answers.yahoo.com/question/index?qid=20120523040336AAstlDW[^]
Hope it helps