You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Для себя я сделал специальную стратегию и скрипт на питоне для автоматического обхода всех заблокированных сайтов.
Предлагаю интегрировать подобным образом.
Моя структура файлов:
Может быть позже залью на гитхаб и прокину сюда ссыль.
НЕ РАБОТАЕТ ДЛЯ ВСТРОЕННЫХ ЗАПРОСОВ В ИГРАХ. К примеру при попытке античита BattlEye или воркшопа Arma Reforger скачать данные автолист не отрабатывал из-за прямого запроса по IP, а не по домену.
Для вопросов пишите здесь в тред или в дискорд: lev_kotovskiy
@echo off
if "%1%" == "del" (
echo DELETE WINDIVERT DRIVER
net stop zapret_kotovskiy
sc delete zapret_kotovskiy
sc stop zapret_kotovskiy
net stop windivert
sc delete windivert
sc stop windivert
goto :end
)
sc qc windivert
if errorlevel 1 goto :end
echo.
choice /C YN /M "Do you want to stop and delete kotovskiy's zapret?"
if ERRORLEVEL 2 goto :eof
"%~dp0elevator" %0 del
goto :eof
:end
pause
update_list_from_list-auto.py
import os
from collections import defaultdict
base_path = os.path.dirname(os.path.abspath(__file__))
input_file = os.path.join(base_path, 'list-auto.txt')
output_file = os.path.join(base_path, 'list.txt')
try:
if not os.path.exists(output_file):
with open(output_file, 'w') as f:
pass
if not os.path.exists(input_file):
with open(input_file, 'w') as f:
pass
with open(output_file, 'r') as f:
existing_domains = set(line.strip() for line in f if line.strip())
with open(input_file, 'r') as f:
domains = [line.strip() for line in f if line.strip()]
domain_dict = defaultdict(list)
for domain in domains:
parts = domain.split('.')
base_domain = '.'.join(parts[-2:]) if len(parts) >= 2 else domain
domain_dict[base_domain].append(domain)
unique_entries = existing_domains.copy()
domains_to_remove = set()
for base_domain, domain_list in domain_dict.items():
if len(domain_list) > 1:
unique_entries.add(base_domain)
unique_entries.add(f"*.{base_domain}")
domains_to_remove.update(domain_list)
print("Записанные домены:")
for entry in sorted(unique_entries-existing_domains):
if not entry.startswith("*."):
print(entry)
with open(output_file, 'w') as f:
for entry in sorted(unique_entries):
f.write(entry + '\n')
remaining_domains = [domain for domain in domains if domain not in domains_to_remove]
with open(input_file, 'w') as f:
for domain in remaining_domains:
f.write(domain + '\n')
print("Анализ списка доменов завершен. Изменения внесены.")
except Exception as e:
print(f"Ошибка при анализе файлов: {e}")
input("Нажмите любую клавишу чтобы выйти..")
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Для себя я сделал специальную стратегию и скрипт на питоне для автоматического обхода всех заблокированных сайтов.
Предлагаю интегрировать подобным образом.
Моя структура файлов:


Может быть позже залью на гитхаб и прокину сюда ссыль.
НЕ РАБОТАЕТ ДЛЯ ВСТРОЕННЫХ ЗАПРОСОВ В ИГРАХ. К примеру при попытке античита BattlEye или воркшопа Arma Reforger скачать данные автолист не отрабатывал из-за прямого запроса по IP, а не по домену.
Для вопросов пишите здесь в тред или в дискорд: lev_kotovskiy
service_create_kotovskiy.cmd
service_remove_kotovskiy.cmd
update_list_from_list-auto.py
Beta Was this translation helpful? Give feedback.
All reactions