Skip to content

Site unblock

Nikunj Kacha

Nikunj Kacha

Asked Jan 19, 2013, 5:15 PM EST2 answers
Share
LinkedInX
hello

how to unblock website using c#

i have block code 

VB.NET
String path = @"C:\Windows\System32\drivers\etc\hosts";
StreamWriter sw = new StreamWriter(path, true);
String sitetoblock = "\n 127.0.0.1 " + textBox1.Text;
sw.Write(sitetoblock);
sw.Close();
lblStat.Text = textBox1.Text + " site Blocked";

2 Answers

Know the answer? Post it. Somebody with the same question will find it here.

  • 0
    This may help you http://stackoverflow.com/questions/868054/how-to-unblock-website-which-is-blocked-using-c
    0
  • Nikunj Kacha
    0
    sir Thanks for code 

    i don't understand this code
    0