A
A
Alexander2015-03-13 15:02:15
Squid
Alexander, 2015-03-13 15:02:15

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"

and then applied like this:
# При срабатывании фильтра 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

In the course of work, it became necessary to allow users to watch YouTube videos on the useful site example.com, but at the same time leave a ban on going to youtube.com. How to do this using squid and is it possible in principle?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question