From dac9da89743947b416acd9d6729bae6c0f260185 Mon Sep 17 00:00:00 2001 From: "jeremy.thomas" Date: Wed, 26 Mar 2025 17:09:38 +0100 Subject: [PATCH] ban des mots --- sisr1/tp05-Installation_proxy/squid/squid.conf | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/sisr1/tp05-Installation_proxy/squid/squid.conf b/sisr1/tp05-Installation_proxy/squid/squid.conf index f2d6f02..3c7c924 100644 --- a/sisr1/tp05-Installation_proxy/squid/squid.conf +++ b/sisr1/tp05-Installation_proxy/squid/squid.conf @@ -1354,11 +1354,11 @@ acl Safe_ports port 777 # multiling http # Ban des mots clés: acl mot_interdis url_regex -i chagpt twitch -http_access deny mot_interdis # Ban des liens: -acl site_bloque url_reglex -i youtube.com facebook.com -http_access deny site_bloque +# acl site_bloque url_reglex -i youtube.com +# acl site_bloque url_reglex -i facebook.com +# http_access deny site_bloque # TAG: proxy_protocol_access # Determine which client proxies can be trusted to provide correct @@ -1557,6 +1557,7 @@ include /etc/squid/conf.d/*.conf # Example rule allowing access from your local networks. # 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 allow localnet http_access allow localhost