тут вы не правы.Kuskow писал(а): 02.06.2026 14:04 Никакой шлагбаум не открывается, поскольку скрипт вылетает с ошибкой, дальше не выполняется, бот получает 500.
Можно использовать консольную команду:
Код: Выделить всё
curl -i -H "User-Agent:" https://forums.test.comКод: Выделить всё
FastCGI sent in stderr: "PHP message: PHP Warning: Undefined array key "HTTP_USER_AGENT" in config.php on line 26; PHP message: PHP Warning: Undefined array key "HTTP_USER_AGENT" in config.php on line 37" while reading response header from upstream, client: x.x.x.x, server: forums.test.com, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php8.2-fpm.sock:", host: "forums.test.com"Код: Выделить всё
x.x.x.x - - [15/Jun/2026:22:39:26 +0000] "GET / HTTP/1.1" 200 34276 "-" "-"т.е. не работает шлагбаум, при отсутствии useragent, форум отдаёт страницу


