Chia Sẽ Kinh Nghiệm Về IT



Tìm Kiếm Với Google
-


Gởi Ðề Tài Mới  Gửi trả lời
 
Công Cụ Xếp Bài
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
Gửi trả lời


Công Cụ
Xếp Bài

Quyền Hạn Của Bạn
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is Mở
Hình Cảm xúc đang Mở
[IMG] đang Mở
Mã HTML đang Tắt




Bây giờ là 08:25 PM. Giờ GMT +7



Diễn đàn tin học QuantriNet
quantrinet.com | quantrimang.co.cc
Founded by Trương Văn Phương | Developed by QuantriNet's members.
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.