Re: [squid-users] How to redirect http://gmail.com to https://gmail.com

From: Amos Jeffries <squid3@dont-contact.us>
Date: Mon, 17 Dec 2007 17:14:00 +1300 (NZDT)

> Dear All,
> I would like to redirect http://gmail.com to https://gmail.com
> because http://gmail.com was banned by our ISP
> But they allow https://gmail.com
> User only know http://gmail.com but when they visit, it was banned.
> Almost the time, I have to go to user and say to use https://gmail.com ..
>
> Any suggestions is appirciated
>

Two approaches:

1) automatic teaching clue-by-4 stick for your users:

acl badGmail dstdomain gmail.com
acl HTTP proto HTTP
deny_info http://yourhostname/gmail_is_broken.html badGmail
http_access deny HTTP badGmail

2) leave the peons ignorant and MAKE it work:

acl badGmail dstdomain gmail.com
acl HTTP proto HTTP

cache_peer gmail.com 443 0 no-query originserver
cache_peer_access gmail.com allow badGmail
cache_peer_access gmail.com deny !badGmail
never_direct deny HTTP badGmail

Amos
Received on Sun Dec 16 2007 - 21:14:03 MST

This archive was generated by hypermail pre-2.1.9 : Tue Jan 01 2008 - 12:00:02 MST