A
A
Anastasia Panfilova2017-02-01 18:16:43
CMS
Anastasia Panfilova, 2017-02-01 18:16:43

How to properly use bitrix_sessid_post and check_bitrix_sessid to protect against bots?

How to provide at least minimal protection against bots? How to use bitrix_sessid_post and check_bitrix_sessid correctly? I'm new to this stuff, so I might be a bit dumb.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
L
latishew, 2017-08-18
@nemarta

1. In the form you need to add - creates a hidden field with a value equal to the session id of the current user. 2. In the handler at the beginning we check<?=bitrix_sessid_post()?>

if(!check_bitrix_sessid()){
    die("ACCESS_DENIED");
}

and then the rest of the manipulations with the request

A
Alexey Burlaka, 2017-02-01
@AlexeyGfi

Does your editorial office have Web Analytics?
It's more convenient to just limit activity :
dev.1c-bitrix.ru/user_help/statistic/settings.php

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question