E
E
EvilDev2018-12-09 07:19:14
Yii
EvilDev, 2018-12-09 07:19:14

Fight spammers or disable BadRequestHttpException in yii2?

We use yii2 in the project.
The situation is such that errors like BadRequestHttpException
$_POST = [
'_csrf' =>
'Ki-Bdlk_dSCn0FyL9-bGt90Kn_NZOvlmlb_lMM05kQVGHvhGE3MDGOS-CvGDha7UhWCyiTtqy1TQ2oRV9VTdNA==' 'One' => '
name_id' => ' 'One' 7_id ' ==' > 'barbaraker' 'phone' => 'oIgjBcgApkqbSYsS' ] ] Would it be better to disable this error or catch suspicious actions and put a captcha if, for example, the csrf validation did not pass the request? Or how would you decide?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question