From 6fd402ddda406fed92cdef37d73697667273e21b Mon Sep 17 00:00:00 2001 From: "jeremy.thomas" Date: Mon, 7 Apr 2025 08:53:20 +0200 Subject: [PATCH] ban des URL --- sisr1/tp05-Installation_proxy/squid/squid.conf | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/sisr1/tp05-Installation_proxy/squid/squid.conf b/sisr1/tp05-Installation_proxy/squid/squid.conf index 3c7c924..ea259de 100644 --- a/sisr1/tp05-Installation_proxy/squid/squid.conf +++ b/sisr1/tp05-Installation_proxy/squid/squid.conf @@ -1353,12 +1353,10 @@ acl Safe_ports port 591 # filemaker acl Safe_ports port 777 # multiling http # Ban des mots clés: -acl mot_interdis url_regex -i chagpt twitch +acl mot_interdis url_regex -i chatgpt twitch # Ban des liens: -# acl site_bloque url_reglex -i youtube.com -# acl site_bloque url_reglex -i facebook.com -# http_access deny site_bloque +acl site_bloque dstdomain -i youtube.com facebook.com chatgpt.com twitch.tv # TAG: proxy_protocol_access # Determine which client proxies can be trusted to provide correct @@ -1558,6 +1556,7 @@ include /etc/squid/conf.d/*.conf # Adapt localnet in the ACL section to list your (internal) IP networks # from where browsing should be allowed http_access deny mot_interdis +http_access deny site_bloque http_access allow localnet http_access allow localhost