|
-
Apr 15th, 2007, 03:59 PM
#1
Thread Starter
Addicted Member
Block IP address & port(VB)
Hi,
How can i block IP address and port with VB(Powerfull)?
Very thanks.
-
Apr 15th, 2007, 04:05 PM
#2
Re: Block IP address & port(VB)
Get a firewall.
And what is VB Powerful?
But yea, a firewall will be your easiest bet. As to how to make a (good) firewall in VB I'm not sure. But there are a lot of them that have been made that you can look at:
http://www.pscode.com/vb/scripts/Bro...1=Quick+Search
-
Apr 15th, 2007, 05:04 PM
#3
Thread Starter
Addicted Member
Re: Block IP address & port(VB)
Tnx, but i dont need firewall! i need just code for block IP & port!
-
Apr 15th, 2007, 06:04 PM
#4
Re: Block IP address & port(VB)
IP and port from what? Incoming connections? Outgoing connections? Try being more specific.
-
Apr 16th, 2007, 03:52 AM
#5
Thread Starter
Addicted Member
Re: Block IP address & port(VB)
Both
-
Apr 16th, 2007, 04:27 AM
#6
Re: Block IP address & port(VB)
That's called a firewall.
There is apparently some good code for how to do this in the link I posted.
-
Apr 16th, 2007, 10:57 AM
#7
Re: Block IP address & port(VB)
I don't think there is a real way of blocking IP's with VB. All the code on pscode.com is based on continuously checking established TCP connections and disconnecting them.
If disconnecting is good enough, then look at the GetTcpTable function.
-
Apr 16th, 2007, 03:11 PM
#8
Thread Starter
Addicted Member
Re: Block IP address & port(VB)
So, we cant block IP address or port with VB?
-
Apr 17th, 2007, 05:20 PM
#9
Re: Block IP address & port(VB)
For the whole computer, or for the VB application you're writing? For the whole computer, no.
The most difficult part of developing a program is understanding the problem.
The second most difficult part is deciding how you're going to solve the problem.
Actually writing the program (translating your solution into some computer language) is the easiest part.
Please indent your code and use [HIGHLIGHT="VB"] [/HIGHLIGHT] tags around it to make it easier to read.
Please Help Us To Save Ana
-
Apr 18th, 2007, 03:47 AM
#10
Thread Starter
Addicted Member
Re: Block IP address & port(VB)
I need code for VB application writing!
-
Apr 18th, 2007, 04:39 PM
#11
Re: Block IP address & port(VB)
What are you using? A Winsock control? If so, just check the address and/or port before navigating to it and, if it's on your list of not-allowed ones, pop up a message box and don't navigate to it.
The most difficult part of developing a program is understanding the problem.
The second most difficult part is deciding how you're going to solve the problem.
Actually writing the program (translating your solution into some computer language) is the easiest part.
Please indent your code and use [HIGHLIGHT="VB"] [/HIGHLIGHT] tags around it to make it easier to read.
Please Help Us To Save Ana
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|