<div class="table-responsive">
<table class="table">
<thead class="table-primary">
<tr>
<th>ID</th>
<th>Name</th>
| <?php | |
| // STUBS FOR BITRIX ENTITY COMPATIBILITY WITH INTELEPHENSE | |
| // This file is intended for IDE-only purposes | |
| // Module 'main' | |
| namespace Bitrix\Main\Entity\Field { | |
| /** @extends \Bitrix\Main\ORM\Fields\IReadable */ | |
| class IReadable extends \Bitrix\Main\ORM\Fields\IReadable {} |
| <?php | |
| // STUBS FOR BITRIX ENTITY COMPATIBILITY WITH INTELEPHENSE | |
| // This file is intended for IDE-only purposes | |
| // Module 'main' | |
| namespace Bitrix\Main\Entity\Field { | |
| /** @extends \Bitrix\Main\ORM\Fields\IReadable */ | |
| class IReadable extends \Bitrix\Main\ORM\Fields\IReadable {} |
| # 7G FIREWALL - NGINX v1.6 | |
| # @ https://perishablepress.com/7g-firewall-nginx/ | |
| map $query_string $bad_querystring_7g { | |
| default 0; | |
| "~*([a-z0-9]{2000,})" 1; | |
| "~*(/|%2f)(:|%3a)(/|%2f)" 2; | |
| "~*(order(\s|%20)by(\s|%20)1--)" 3; |
Было замечено, что на сайт идет множество запросов с симуляцией поведения Android девайса с прокруткой содержимого страницы и ее повторного открытия уже с другой информацией об устройстве.
Запросы обычно происходили на одни и те же страницы (в основном только на две-три). Адрес запроса был сформирован так, что сервер переадресовывал на корректный адрес. Например, с
/info→/info/.
У более чем 95% подозрительных запросов были использованы IPv6 адреса. Что явно затрудняло обнаружение продозрительного трафика, т.к. нагрузки почти не было и сайт работал в штатном режиме, но была замечена накрутка посещаемости.
| /* // * Fix top bitrix panel offset */ | |
| :root { | |
| --bx-panel-top-offset: 0px; | |
| } | |
| :has(#bx-panel.bx-panel-fixed) { | |
| --bx-panel-top-offset: 39px; | |
| } |
Создать файл /etc/nginx/bx/settings/schema.conf
map $http_x_forwarded_proto $balancer_port {[Bitrix] Own authorization distribution (instead of spread.php)
Need to disable standart cookies spread - /bitrix/admin/settings.php?mid=main&tabControl_active_tab=edit1#opt_ALLOW_SPREAD_COOKIE
Add to php_interface/init.php
// Path to `reauth.class.php` file
include_once __DIR__ . '/../../x-dev/reauth/reauth.class.php';Добавить код, например, в php_interface/init.php
// * Фикс подсветки выделения в input типа 'список' для некоторых браузеров
AddEventHandler('main', 'OnBeforeProlog', 'OnFixAdminStyleInputSelect');
function OnFixAdminStyleInputSelect()[YSTU WPROG] Dark theme
Установка с помощью Stylus
Если у вас установлено расширение Stylus, вы можете установить тему, перейдя по ссылке ниже.\
