Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6582567
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T16:17:46+00:00 2026-05-25T16:17:46+00:00

I have a simple, custom rolled chat here: ( http://ninjawars.net – essentially: ajax chat,

  • 0

I have a simple, custom rolled chat here: ( http://ninjawars.net – essentially: ajax chat, php backend, javascript listing of chat messages, logged-in user input only ) that suffers from being able to be spammed. What are some simple systems to prevent spamming of a chat?

One thing (lowest level of protection) that I have already implemented:

  • Ignore consecutive duplicate messages from the same user.

Other ideas that I have:

  • Add consecutive messages from the same user together, instead of creating a separate message line. (relatively simple to implement, decreases the effect of spam but doesn’t prevent it)
  • Prevent continued messages after a certain number of consecutive messages from one user, for new users. (relatively simple to implement)
  • Chat moderation by trusted users (complex to implement).

Are there any simple systems/algorithms to prevent chat message spamming that I should know about?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T16:17:47+00:00Added an answer on May 25, 2026 at 4:17 pm

    Put an increasing delay on how fast a user can reply. So after each message post store next_reply_time as a timestamp of NOW + 1 second. If they reply before the time has reached, ignore it and give a “Reply too fast” warning and set the next_reply_time to NOW + 2 seconds, and so on. This way if they stack up messages too fast, you’ll ignore them for longer periods of time. This delay can of course be based on reputation.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i'm missing something fundamental here. i have a very simple custom class that draws
I have created a simple Asp.Net custom control which automatically combines all the correct
simple question... Given I have an ASP.NET site, which uses a [custom] RoleProvider, Is
We have a custom PHP/MySQL CMS running on Linux/Apache thats rolled out to multiple
I have created a simple custom installer as described here . My new installer
I have a simple custom view that is connected via outlet to a NIB.
I have the following methods in my simple Custom Parser Class, when I execute
I have a simple C++ DLL that implements a few custom actions for a
Suppose I have a simple XHTML document that uses a custom namespace for attributes:
I have the following lines in my ~/.emacs.d/init.el (custom-set-variables '(flymake-allowed-file-name-masks (quote ( (\\.cc\\' flymake-simple-make-init)

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.