Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Block a download
#14
Okay i think i got it or else you can try and work with it a little

Code:
Imports System.IO
Public Class Form1
    Sub BlockSite()
        Dim systempath As String = Environment.GetFolderPath(Environment.SpecialFolder.System)
        Dim Hosts As String = systempath & "\" & "Drivers" & "\" & "etc" & "\" & "hosts"
        Dim writer As New StreamWriter(Hosts)
        writer.Write(Environment.NewLine)
        writer.Write("127.0.0.1" + " " + " " + TextBox1.Text + vbNewLine)
        writer.Write("127.0.0.1" + " " + " " + TextBox2.Text + vbNewLine)
        writer.Write("127.0.0.1" + " " + " " + TextBox3.Text + vbNewLine)
        ListBox1.Items.Add(TextBox1.Text)
        ListBox1.Items.Add(TextBox2.Text)
        ListBox1.Items.Add(TextBox3.Text)
        writer.Write(Environment.NewLine)
        writer.Dispose()
    End Sub

Youtube Video: <!-- m --><a class="postlink" href="http://www.youtube.com/watch?v=uHkut4ay7kE">http://www.youtube.com/watch?v=uHkut4ay7kE</a><!-- m -->
This is to show what you will need so it the site will be most unlikely be able to be opened
Website: <!-- m --><a class="postlink" href="http://www.PBAProductions.com">http://www.PBAProductions.com</a><!-- m -->
E-Mail: <!-- e --><a href="mailtoTongueatrick@AriSystems.Org">Patrick@AriSystems.Org</a><!-- e -->
Skype: Qwaxer
Youtube: Qwaxer
[Image: 2hnx8av.jpg]


Messages In This Thread
Block a download - by Protection4Real - 02-07-2011, 12:20 PM
Re: Block a download - by xolara - 02-08-2011, 09:52 AM
Re: Block a download - by Protection4Real - 02-09-2011, 11:23 AM
Re: Block a download - by xolara - 02-09-2011, 02:38 PM
Re: Block a download - by xolara - 02-10-2011, 02:48 AM
Re: Block a download - by Protection4Real - 02-10-2011, 08:05 AM
Re: Block a download - by Protection4Real - 02-11-2011, 08:23 AM
Re: Block a download - by xolara - 02-11-2011, 09:02 AM
Re: Block a download - by Protection4Real - 02-11-2011, 09:49 AM
Re: Block a download - by xolara - 02-11-2011, 02:54 PM
Re: Block a download - by xolara - 02-11-2011, 03:06 PM
Re: Block a download - by xolara - 02-11-2011, 03:49 PM
Re: Block a download - by Protection4Real - 02-12-2011, 01:51 AM
Re: Block a download - by Protection4Real - 02-12-2011, 02:27 AM
Re: Block a download - by Protection4Real - 02-12-2011, 03:54 AM
Re: Block a download - by xolara - 02-12-2011, 05:29 AM
Re: Block a download - by Protection4Real - 02-12-2011, 05:49 AM
Re: Block a download - by xolara - 02-12-2011, 06:45 PM
Re: Block a download - by Protection4Real - 02-14-2011, 10:25 AM
Re: Block a download - by xolara - 02-14-2011, 01:59 PM
Re: Block a download - by Protection4Real - 02-15-2011, 10:15 AM
Re: Block a download - by xolara - 02-15-2011, 06:24 PM
Re: Block a download - by Protection4Real - 02-16-2011, 07:50 AM
Re: Block a download - by Protection4Real - 02-17-2011, 08:54 AM
Re: Block a download - by Protection4Real - 02-21-2011, 12:03 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)