PHP: Extra validation on a textarea field. Stop spam-like text

I got a form that many use. I require people to enter minimum 150 characters and that makes some people spam characters or words.

I require some re-coding of the simple validation to include error stops if people spam.

Examples of spam I want to catch:

"join join join join join join"



and so on - The spam can come in many forms, so I need some smart script to identify words and characters that gets repeated X number of times.

X should be around 5, but I would like to set this manually.

The code I have now to validate the character count, that I would like to get expanded with this new spam validation:

$descriptioncount = strlen($_POST['description']);

if ($descriptioncount<150) {

$errors["error"][] = "Description is to short - minimum 150 characters.<br />";


Any PHP wiz out there who can make this? :)

Taidot: PHP, tietojärjestelmäarkkitehtuuri

Näytä lisää: validation, br software, validation script php, count words text, php coding errors, wiz, script validation php, spam software, php stop words script, require people, field validation, number times character count, enter text, php form coding, php code error, short text 150, count words php, validate error, 150 forms, php count words text, 150 simple words, spam code, spam script, simple php form validation code, text 150 words

Tietoa työnantajasta:
( 15 arvostelua ) Naestved, Denmark

Projektin tunnus: #1741140

Myönnetty käyttäjälle:


Simple problem that I'll be happy to solve, I'll provide you with my solution over PMB

$60 USD 1 päivässä
(58 Arvostelua)

9 freelanceria on tarjonnut keskimäärin %project_bid_stats_avg_sub_26% %project_currencyDetails_sign_sub_27% tähän työhön


Please check PMB

$50 USD 1 päivässä
(306 arvostelua)

HI, I am an expert PHP, Javascript, developer who has developed and customized hundreads of form, and i cna assure that i cna write a script to stop spam, please check PM for more info

$70 USD 1 päivässä
(83 arvostelua)

Dear Hiring Manager, We have read your requirements. Please view Private Message for clarification. Thank you

$40 USD 1 päivässä
(7 arvostelua)

Wizard here can full fill your wish.

$30 USD 0 päivässä
(16 arvostelua)

I can Work On this Soon -> I'm ready to start

$80 USD 0 päivässä
(3 arvostelua)

I Can Do [login to view URL] PM For More Information.

$50 USD 2 päivässä
(0 arvostelua)

Custom software development - The Administrator removed this message due to advertising which breaches our Terms and Conditions.

$250 USD 1 päivässä
(0 arvostelua)

Ready to start. Please Check PM.

$30 USD 1 päivässä
(0 arvostelua)