Results 1 to 11 of 11

Thread: Block IP address & port(VB)

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Jan 2007
    Location
    Iran
    Posts
    237

    Exclamation Block IP address & port(VB)

    Hi,
    How can i block IP address and port with VB(Powerfull)?
    Very thanks.
    Y.P.Y

  2. #2
    "Digital Revolution"
    Join Date
    Mar 2005
    Posts
    4,471

    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

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Jan 2007
    Location
    Iran
    Posts
    237

    Re: Block IP address & port(VB)

    Tnx, but i dont need firewall! i need just code for block IP & port!
    Y.P.Y

  4. #4
    "Digital Revolution"
    Join Date
    Mar 2005
    Posts
    4,471

    Re: Block IP address & port(VB)

    IP and port from what? Incoming connections? Outgoing connections? Try being more specific.

  5. #5

    Thread Starter
    Addicted Member
    Join Date
    Jan 2007
    Location
    Iran
    Posts
    237

    Re: Block IP address & port(VB)

    Both
    Y.P.Y

  6. #6
    "Digital Revolution"
    Join Date
    Mar 2005
    Posts
    4,471

    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.

  7. #7
    Frenzied Member
    Join Date
    Nov 2005
    Posts
    1,834

    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.

  8. #8

    Thread Starter
    Addicted Member
    Join Date
    Jan 2007
    Location
    Iran
    Posts
    237

    Re: Block IP address & port(VB)

    So, we cant block IP address or port with VB?
    Y.P.Y

  9. #9
    PowerPoster
    Join Date
    Feb 2006
    Location
    East of NYC, USA
    Posts
    5,691

    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

  10. #10

    Thread Starter
    Addicted Member
    Join Date
    Jan 2007
    Location
    Iran
    Posts
    237

    Re: Block IP address & port(VB)

    I need code for VB application writing!
    Y.P.Y

  11. #11
    PowerPoster
    Join Date
    Feb 2006
    Location
    East of NYC, USA
    Posts
    5,691

    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
  •  



Click Here to Expand Forum to Full Width