santosh  kumar santosh kumar - 4 years ago 123 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("")
If str = "blocking" Then
MessageBox.Show("This application has been blocked by administrator", "Application blocked", MessageBoxButtons.OK, MessageBoxIcon.Error)
End If
End If

this way not secure so

please teach me another way

thank u

Answer Source
Dim blocklist As String = ",,,"
        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

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