Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    Regular Coder
    Join Date
    Nov 2004
    Location
    USA
    Posts
    123
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question need help with vb.net socket's

    I have recently made a chat client and am wondering how you would go about preventing people from spamming the server.
    would u use a timmer along with other vars or what?

    the sorce files are located here
    open the server first then go and open the client
    any help will be helpfull

  • #2
    Regular Coder
    Join Date
    Oct 2004
    Posts
    230
    Thanks
    0
    Thanked 0 Times in 0 Posts
    This is not VB specific, but relevant to any language.

    Timers are about the only way you can prevent people from spamming. Every time someone sends a message, record the time. The next time they send a message, just check the time against the last message time, and kill it if it's too close.

    You can do the checking in the client rather than the server so that the server isn't spending valuable cpu time running simple tasks like that, but it is easier to make adjustments if the server does all the work (you won't have to redistribute client binaries just to make small changes).

    Another idea which I've used is to disable copy/paste to the text entry area, which forces people to actually type in messages rather than spamming in blocks of text with a right mouse click.

  • #3
    Regular Coder
    Join Date
    Nov 2004
    Location
    USA
    Posts
    123
    Thanks
    0
    Thanked 0 Times in 0 Posts
    how do you go about dissabling the copy past in a text box forum?
    i looked but i could not find a property.
    would i have to use the key press sub?


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •