Block Flash Ads In Squid

FREQUENTLY ASKED QUESTIONS (Squid Proxy)
Q: How to block flash ads in squid proxy server?

Configure your Squid proxy server to block flash ads (advertisements) in websites. So squid server filter flash ads contents. 


Steps to block all flash ads in squid proxy server.
Edit squid configuration file and add the below configurations to squid.conf file.


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

#1: Create an acl for ads content type
acl flash_ads rep_mime_type application/x-shockwave-flash

#2: Deny flash ads by denying the above acl (against any ipaddress acl)
http_reply_access deny
 flash_ads 
#Now Save the squid.conf file

#3: Reload squid service to take effect changes

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

Important: Sometimes clearing the client browser's cache/cookie is required.)

0 comments:

Related Posts Plugin for WordPress, Blogger...

 
Design by Free WordPress Themes | Bloggerized by Lasantha - Premium Blogger Themes | Bluehost Coupons