Last active
August 21, 2024 08:47
-
-
Save MrWhiteD/03cf022814d5831d101db5b67375d09d to your computer and use it in GitHub Desktop.
[Отключение защиты админ раздела] #защита #security
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ВАРИАНТ 1 | |
Открыть файл /bitrix/modules/security/classes/general/iprule.php и закомментировать строчку ~1235 | |
if($bMatch) | |
include($_SERVER["DOCUMENT_ROOT"]."/bitrix/admin/security_403.php"); | |
ВАРИАНТ 2 | |
Создать файл с содержимым: | |
<? | |
require($_SERVER["DOCUMENT_ROOT"]."/bitrix/header.php"); | |
echo COption::GetOptionString("security", "ipcheck_disable_file"); | |
require($_SERVER["DOCUMENT_ROOT"]."/bitrix/footer.php"); | |
?> | |
Выведет имя файла, который надо создать (пустым), что отменит блокировку по IP. | |
Не забудьте удалить данный скрипт и файл-флажок после внесения изменений в админке. | |
ВАРИАНТ 3 | |
/www/bitrix/modules/main/include.php | |
foreach (GetModuleEvents("main", "OnPageStart", true) as $arEvent) | |
{ | |
ExecuteModuleEventEx($arEvent); //закомментить | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment