santosh  kumar santosh kumar - 4 years ago 123
Vb.net Question

how to block application for ever with remote

i know about blocking system but this way not secure

Dim ws As New WebClient
Dim str As String = ws.DownloadString("http://blocksys.com/Devil.txt")
If str = "blocking" Then
MessageBox.Show("This application has been blocked by administrator", "Application blocked", MessageBoxButtons.OK, MessageBoxIcon.Error)
Application.Exit()
End If
End If


this way not secure so

please teach me another way

thank u

Answer Source
Dim blocklist As String = "blocksys.com,abc.com,domain.com/list.txt,another.com/test.pdf"
        Dim Block As Boolean = False
        Dim requestaddress As String 'Your address
        Dim myList As String() = blocklist.Split(New Char() {","c})

        For Each checkBlock As String In myList
            If requestaddress.IndexOf(checkBlock) <> -1 Then Block = True
        Next

        If Block = False Then
            'Allow access to Download
        Else
            'Block download
        End If
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download