ok thanks.
Do you know any articles that could help me understand exactly what is happening?
Do they do it by simply clicking the submit button again and again?
Do you want to limit the amount of text submitted in each transaction? Suppose you want only 1000 characters per submission... you could reduce the field size in the actual database table and then add some server-side ASP to truncate the text before inserting it into the database, perhaps with the Left() function.
Has someone written a program to automatically submit over and over and over until your database is full? If so then perhaps some sort of CAPTCHA is the answer. See:
Do your users need to be logged into your system before they submit the data? Perhaps you should not take anonymous submissions? If you know WHO is submitting the data then you can limit the number of submissions per username per day/week/month.
If none of these describe your situation then please clarify the question.
i put a text box with a random question in it, like Are you Human.
If they answer it yes then fine submit everything, but if they fail to answer then it is a bot and you dont submit it.
I was thinking more in the line of someone submitting continuously by clicking the submit button.
Could you just create a session that lasts for a minute or a set period that blocks then from resubmitting. Would that be one way to do it?
One option would be to store the time in a session variable on a successful post. Each time the form is submitted you would first check if that session variable has a value and then if that time is more than a certain number of seconds or minutes from the current time (basically a DateDiff between the session variable and Now).
Another option that I use occasionally when we have people re0submitting entries (accidentally or on purpose) is to do a SELECT from the database ahead of time to see fit he content has already been submitted once. If it has, I output an error to that effect, otherwise I continue with the submit.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.