Nuffnang

Monday, November 18, 2013

Block Youtube flash videos in Squid

Steps to block all youtube flash videos in Squid proxy server
Add the below configurations to squid.conf file. 
[root@server ~#]vi /etc/squid/squid.conf

#1: Create an acl for flash video contents
acl flash rep_mime_type video/x-flv

#2: Deny flash videos by denying the above acl
http_reply_access deny flash

#Save the squid.conf file

#3: Reload squid service to take effect changes
[root@server ~#]service squid reload

Tuesday, November 5, 2013

Block https sites in squid (eg: block https://www.facebook.com)


Step1: Create a new acl with facebook.com (Dont forget to add a dot (".") before facebook.com)
acl badsites dstdomain .facebook.com
Step2: Deny the above domain to connect via ssl connection (https)
http_access deny CONNECT badsites