--[[ <HCExtension>@name block with sound@author mai62@version 0.01@description Блокирует загрузку и выдает звуковой сигнал@rule sex@event RequestHeaderReceived/request</HCExtension> ]]function request() hc.action = "stop" hc.play_sound('Windows Critical Stop.wav') hc.monitor_string = hc.monitor_string.."block with sound "end
--[[ <HCExtension>@name For_hc_user@author ___@version 0.01@description Блокирует пользователя при переборе трафика@exception webim\.qip\.ru:5222@exception login\.icq\.com:443@event RequestHeaderReceived/request</HCExtension> ]]function request() if hc.user_name == 'ww' and hc.user_from_internet > 30*1024*1024 then hc.action = 'stop' end if hc.user_name == 'pecherer' and hc.user_from_internet > 20*1024*1024 then hc.action = 'stop' end if hc.user_name == 'taxist' and hc.user_from_internet > 20*1024*1024 then hc.action = 'stop' end if hc.user_name == 'puto' and hc.user_from_internet > 15*1024*1024 then hc.action = 'stop' endend
if ref_host~='yandex' and ref_host~='google' and ref_host~='ru-board' then
--[[ <HCExtension>@name Разные внешние прокси для разных браузеров (R-Proxy)@author DenZzz@version 0.1 для HC v1.00 RC2 (1.0.0.180) и возможно выше@description Переключает внешние прокси в зависимости от браузеров@event RequestHeaderReceived/Request</HCExtension> ]]function Request() if re.match(hc.request_header, [[User-Agent:[^\r\n]*Opera]]) then hc.use_proxy = '192.168.55.2:8080' end if re.match(hc.request_header, [[User-Agent:[^\r\n]*Firefox]]) then hc.use_proxy = '10.0.0.1:8080' endend -- Конец функции Request