Käynnissä

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, text 150 words, smart script

About the Employer:
( 15 reviews ) Naestved, Denmark

Projektin tunnus: #1741140

Myönnetty käyttäjälle:

SourceBurner

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)
5.2

9 freelanceria on tarjonnut keskimäärin 73 $ tähän työhön

rabbul

Please check PMB

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

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)
6.7
milliard

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

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

Wizard here can full fill your wish.

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

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

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

I Can Do It.Check PM For More Information.

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

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)
0.0
parama4u

Ready to start. Please Check PM.

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