Modification de squid.conf pour ban mots et sites
This commit is contained in:
parent
5d3ce6cef2
commit
ea525ffbd8
@ -1352,6 +1352,13 @@ acl Safe_ports port 488 # gss-http
|
|||||||
acl Safe_ports port 591 # filemaker
|
acl Safe_ports port 591 # filemaker
|
||||||
acl Safe_ports port 777 # multiling http
|
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
|
# TAG: proxy_protocol_access
|
||||||
# Determine which client proxies can be trusted to provide correct
|
# Determine which client proxies can be trusted to provide correct
|
||||||
# information regarding real client IP address using PROXY protocol.
|
# 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
|
# from where browsing should be allowed
|
||||||
http_access allow localnet
|
http_access allow localnet
|
||||||
http_access allow localhost
|
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
|
# And finally deny all other access to this proxy
|
||||||
http_access deny all
|
http_access deny all
|
||||||
|
Loading…
x
Reference in New Issue
Block a user