Click here to Skip to main content
16,018,797 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Okay so i have a small social website and users can make statuses (inserts into database then displays) But how could i make it so they can only make like....100 posts every hour or something to prevent a lot of spam
Posted
Comments
[no name] 8-Dec-13 9:20am    
Mark posts with user id and post date time and check this information before next post?

1 solution

You try to convince yourself that you have some (maybe vague) idea of preventing spam, but no, you don't. Having spam is the flip side of the features allowing some flexibility in adding content to your site. The resolution of the problem simply does not exist, you can only alleviate the problem to some degree.

The idea of 100/hour post limit, or something like that, won't work at all. For rare legitimate users, it will be an unwanted hassles. For spammers, 100/hour won't be a problem at all: they will create several accounts and will make enough spam of 100/hour (as if it was not enough!).

Let me put this way: if spam protection in such situations was possible, CodeProject would never had spam. But we has some, and used to have a heavy problem with that. To get some idea, please see:
http://www.paulgraham.com/spam.html[^] (an article inspired some ideas I used),
A Plan for Spam[^] (my short CodeProject tips/tricks article written in response to the heavy spamming situation we has).

At least, it could give you the idea on how difficult the problem can be. Actually, I don't know the current status of spam resistance features of CodeProject. If you are interested, you can ask Chris Maunder here: http://www.codeproject.com/Forums/1645/Site-Bugs-Suggestions.aspx[^].

—SA
 
Share this answer
 
Comments
thatraja 9-Dec-13 2:44am    
5!
Sergey Alexandrovich Kryukov 9-Dec-13 3:10am    
Thank you, Raja.
—SA



This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900