Answer the question
In order to leave comments, you need to log in
How to ban the youtube.com domain in squid, but skip sites with embedded videos?
The organization uses the Squid 3.3.8 proxy server to filter a number of sites by category: social networks, video hosting, porn, games, etc. Domain lists are loaded from files using the following construction:
# Список шаблонов фильтрации видеохостингов
acl video_hostings dstdomain "/etc/squid/lists/video_hostings"
# При срабатывании фильтра video_hostings выдавать пользователю страничку с ошибкой ERR_NO_VIDEO
# Запрещаем видеохостинг
deny_info ERR_NO_VIDEO video_hostings
http_access deny video_hostings
access_log stdio:/var/log/squid/video_hostings.log common video_hostings
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question