From ea525ffbd8debab350766f0a5a7fed796f181754 Mon Sep 17 00:00:00 2001 From: "yann.lereuille" Date: Wed, 26 Mar 2025 17:01:45 +0100 Subject: [PATCH] Modification de squid.conf pour ban mots et sites --- sisr1/tp05-proxy/squid.conf | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/sisr1/tp05-proxy/squid.conf b/sisr1/tp05-proxy/squid.conf index 9d902ac..6140ccc 100644 --- a/sisr1/tp05-proxy/squid.conf +++ b/sisr1/tp05-proxy/squid.conf @@ -1352,6 +1352,13 @@ acl Safe_ports port 488 # gss-http acl Safe_ports port 591 # filemaker acl Safe_ports port 777 # multiling http +# Ban des mots clés : +acl mots_interdits url_regex -i chatgpt +acl mots_interdits url_regex -i twitch +# Ban des sites suviants : +acl sites_bloques dstdomain youtube.com +acl sites_bloques dstdomain facebook.com + # TAG: proxy_protocol_access # Determine which client proxies can be trusted to provide correct # information regarding real client IP address using PROXY protocol. @@ -1551,6 +1558,9 @@ include /etc/squid/conf.d/*.conf # from where browsing should be allowed http_access allow localnet http_access allow localhost +http_access deny mots_interdits +http_access deny sites_bloques +http_access deny plage_horaire # And finally deny all other access to this proxy http_access deny all