What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Skype & Technology » Tech Talk » Block IP In VB

1 votes - 5 average   Block IP In VB
Author: Message:
Mike
Elite Member
*****

Avatar
Meet the Spam Family!

Posts: 2795
Reputation: 48
31 / Male / Flag
Joined: Mar 2003
RE: Block IP In VB
Try this:
On ConnectionRequest event:
code:

Dim i As Integer
For i = 0 to List1.Listcount -1 'loop in each listbox's items
If List1.List(i) = Winsock1.RemoteIP Then
Winsock1.Close
Winsock1.Listen
Exit Sub
End if
Next i
Winsock1.Close
Winsock1.Accept requestID

I believe that this should work.
Of course you need to change list1 and winsock1 to the right names :)

This post was edited on 09-02-2004 at 11:21 AM by Mike.
YouTube closed-captions ripper (also allows you to download videos!)
09-02-2004 11:20 AM
Profile E-Mail PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Block IP In VB - by DJeX on 09-02-2004 at 03:49 AM
RE: Block IP In VB - by Mike on 09-02-2004 at 06:08 AM
RE: Block IP In VB - by DJeX on 09-02-2004 at 07:42 AM
RE: Block IP In VB - by Mike on 09-02-2004 at 11:20 AM
RE: Block IP In VB - by DJeX on 09-02-2004 at 06:07 PM
RE: Block IP In VB - by Millenium_edition on 09-02-2004 at 06:11 PM
RE: Block IP In VB - by DJeX on 09-02-2004 at 06:50 PM
RE: Block IP In VB - by Millenium_edition on 09-03-2004 at 02:50 PM
RE: Block IP In VB - by DJeX on 09-03-2004 at 06:14 PM


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On