We are going to block this file.The configuration file is :
acl LOCALNETWORK src 192.168.0.0/24
acl FORBIDDEN_DESTINATION dstdomain "/etc/squid/restrictdomains.txt"
acl FORBIDDEN_VIDEO rep_mime_type video/x-flv
http_access deny FORBIDDEN_DESTINATION
http_reply_access deny FORBIDDEN_VIDEO
http_access allow LOCALNETWORK
http_port 3128
The difference with our previous configuration are :
- acl FORBIDDEN_VIDEO rep_mime_type video/x-flv. rep_mime_type is regex match against the mime type of the reply received by squid. Can be used to detect file download or some types HTTP tunneling requests. This has no effect in http_access rules. It only has effect in rules that affect the reply data stream such as http_reply_access.
- http_reply_access deny FORBIDDEN_VIDEO. http_reply_access allow replies to client requests. This is complementary to http_access.