PDA

View Full Version : need help on flood prevention


harmor19
09-21-2005, 04:09 PM
This is not vB related.

I am making a script where people post and it goes into the database.
How can I do a flood prevention so members need to wait 20 seconds after posting to post again?

Marco van Herwaarden
09-21-2005, 04:54 PM
Write the time of the last post to a cookie, then compair the cookie with the current time on a new post. Or keep the last posttime in the user table.