From 0e5008825070e9da714f33440583dd159e10fba6 Mon Sep 17 00:00:00 2001 From: btatu Date: Tue, 26 Feb 2019 11:41:27 +0100 Subject: [PATCH] Ajout whitelist pour les referer --- HowtoLAMP/Squid.md | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/HowtoLAMP/Squid.md b/HowtoLAMP/Squid.md index d62ffe8b..d2bfdd04 100644 --- a/HowtoLAMP/Squid.md +++ b/HowtoLAMP/Squid.md @@ -28,8 +28,9 @@ acl Safe_ports port 80 # http acl SSL_ports port 443 563 acl WHITELIST url_regex "/etc/squid3/whitelist.conf" +acl REFERER referer_regex "/etc/squid3/whitelist-referer.conf" - deny !WHITELIST + deny !REFERER !WHITELIST allow INTERNE deny all @@ -37,6 +38,13 @@ logformat combined %>a %[ui %[un [%tl] "%rm %ru HTTP/%rv" %>Hs % + +~~~ + Le fichier _whitelist.conf_ contiendra les URLs autorisées en sortie : ~~~