[Ilugc] How to block gmail on port 443

  • From: subhojit.ojha@xxxxxxxxx (subhojit ojha)
  • Date: Wed Jan 6 14:53:23 2010

hi all,
       I tried to block gmail access in port no 443 like this

acl block_port port 443
http_access deny block_port

but if I m blocking this port, any other site which is using this port is
also blocked, I just want to block gmail via this port not other sites...

I also tries tried this link

http://www.linuxquestions.org/questions/linux-newbie-8/how-to-block-https-sites-through-acl-in-squid-702208/

but, these solutions are not able to block https.
I also tried /etc/hosts file

127.0.0.1        localhost.localdomain  localhost   mail.google.com  mail

but, this also fail to stop https. I thought I can write a script which will
be run automatically whenever any client request for
https://mail.google.com but I don't have idea where i should copy the script
so that it should automatically called whenever the above request is
comming....Any idea, plz share or if any body have implemented plz suggest
me how to achieve it.



with regards
subhojit ojha

Other related posts: