Quản trị net diễn đàn chia sẻ thông tin các thủ thuật mạng, internet bảo mật thông tin dành cho giới IT VIệt hy vọng là nơi bổ ích cho cộng đồng

Quản trị net diễn đàn chia sẻ thông tin các thủ thuật mạng, internet bảo mật thông tin dành cho giới IT VIệt hy vọng là nơi bổ ích cho cộng đồng (http://quantrinet.com/forum/index.php)
-   11.Xây dựng máy chủ Proxy Server - Squid (http://quantrinet.com/forum/forumdisplay.php?f=212)
-   -   Chặn flash, Video trên Youtube, facebooks trên Squid Proxy (http://quantrinet.com/forum/showthread.php?t=9569)

hoctinhoc 28-11-2013 10:41 AM

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



:battay:


Bây giờ là 10:03 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.