Click here to Skip to main content
15,890,512 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hello, anyone have source code on Website Blocker using VB.net to block and unblock website using URL? please share it with me..Thanks =)
Posted

1 solution

Hello,

Block from what? If you are looking at blocking a website from any browser then essentially you are looking at creating a firewall or proxy software. Please have a look at this[^] post it sure will help you.

Regards,
 
Share this answer
 
Comments
Member 10814886 13-May-14 7:17am    
just block it, so it wouldn't display on browser.. eg:if I enter in the text field as www.facebook.com and hit Block button, then I can't access facebook if I want to browse it.. this because the URL transferred into host file that will block website(s)..

But the problem is I don't know how to unblock it since I did't found any source code of it. The way to unblock that I only found is to remove the URL in the host file itself.. any solution? thanks =)
Prasad Khandekar 13-May-14 12:25pm    
May be you want to give a try to this nifty utility. http://www.addictivetips.com/windows-tips/quickly-switch-between-multiple-hosts-files-without-editing-original/

You can even try ARSoft.Tools.Net (http://arsofttoolsnet.codeplex.com/) which contains a DNS Server component, using which you can create a local DNS server and use it for DNS name resolution instead of Host File. This way you can achieve what you want.
Member 10814886 14-May-14 3:15am    
oh i see.. But I'm developing a system for my Bachelor final project..
Prasad Khandekar 14-May-14 3:53am    
In that case I think ARSoft.Tools.Net project should help you.

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