View Single Post
Tuổi 28-11-2013, 10:41 AM   #1
hoctinhoc
Guest
 
Trả Lời: n/a
Chặn flash, Video trên Youtube, facebooks trên Squid Proxy
Chặn flash, Video trên Youtube, facebooks....trên Squid Proxy

1. Chặn Flash

[root@server ~]# vi /etc/squid/squid.conf

Mã:
#1: tạo loại quảng cáo cần chặn

acl flash_ads rep_mime_type application/x-shockwave-flash

#2: Chặn các loại quảng cáo ở dòng cấu hình trên

http_reply_access deny
Mã:
 flash_ads 



#Lưu lại file cấu hình


Restart lại dịch vụ và kiểm tra


Mã:
[root@server ~]# service squid reload
                            or
[root@server ~]# service squid restart


2. Chặn Video on Youtube với Squid Proxy


[root@server ~#]vi /etc/squid/squid.conf

Mã:
     
#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

3. Chặn facebook với Squid Proxy

Tham khảo thêm

http://servercomputing.blogspot.com/...xy-server.html



  Trả lời ngay kèm theo trích dẫn này