Tuesday, September 11, 2012

Blocking videos with rep_mime_type video/x-flv

1 comments







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 :
  1. 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.
  2. http_reply_access deny FORBIDDEN_VIDEO. http_reply_access allow replies to client requests. This is complementary to http_access.

1 comments:

Anonymous said...

Could you tell me, where you get this file "restrictdomains.txt" from? what are the contain of this file

Post a Comment