954,561 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

How to avoid spam postings in my website

Hello all,

I have this strange problem. I have a website where user can post messages to the site. I see from yesterday that someone is trying is manipulate with the forms.

I see some 1048 messages posted in a single minute to the site :( .
I used nl2br(htmlentities(-displaymessage)).. but it only captures html code. What about other scripts code that malicious users try to run.. I see no code or anything displayed in my website. The only thing i see is soo many messages posted to the site in less than a single minute.

Please help me :(.. how to avoid these kind of things...

csharplearner
Junior Poster
100 posts since Nov 2008
Reputation Points: 11
Solved Threads: 3
 
buddylee17
Practically a Master Poster
697 posts since Nov 2007
Reputation Points: 232
Solved Threads: 137
 
Use captcha .

Thanks for the quick reply. I shall use it definetly.

Can you please tell me how to display that javasrcipt code instead if allowing it to run in the website ..just like capturing html...

csharplearner
Junior Poster
100 posts since Nov 2008
Reputation Points: 11
Solved Threads: 3
 

Either disable html messages or look into using BBCode

buddylee17
Practically a Master Poster
697 posts since Nov 2007
Reputation Points: 232
Solved Threads: 137
 
Either disable html messages or look into using BBCode


Thanx a Ton.

csharplearner
Junior Poster
100 posts since Nov 2008
Reputation Points: 11
Solved Threads: 3
 

This question has already been solved

Post: Markdown Syntax: Formatting Help
You