How to block a Web Browser in Squid proxy

FREQUENTLY ASKED QUESTIONS  (Linux)
Q: How to block a browser in squid proxy?


   Blocking  some web browsers is possible in squid proxy server. Squid can block all the requests from web browsers like Internet explorer, Chrome, Firefox, etc. 


Create an "acl" with the bad web browser types and finaly deny the access. Add all the below configurations to the Squid server configuration file "/etc/squid/squid.conf".    
[root@server ~#]vim /etc/squid/squid.conf


#Block Chrome in squid proxy
acl bad_browser browser Chrome
#Deny the requests from chrome 
http_access deny bad_browser all

#Block Mozilla Firefox in squid proxy
acl bad_browser browser Firefox
#Deny the requests from firefox 
http_access deny bad_browser all


#Block Opera in squid proxy
acl bad_browser browser Chrome
#Deny the requests from chrome 
http_access deny bad_browser all



#Block Internet Explorer in squid proxy
acl bad_browser browser IE
#Deny the requests from Internet explorer 
http_access deny bad_browser all

Was this helpfull ?

0 comments:

Related Posts Plugin for WordPress, Blogger...

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