Redirect https://encrypted.google.com

ISAPI_Rewrite is a powerful URL manipulation engine based on regular expressions
User avatar
Posts: 5
Joined: 30 Mar 2012, 05:30

Redirect https://encrypted.google.com

30 Mar 2012, 05:33

Hi Guys,
Like the new forum!

I was wondering someone could help me with redirecting access to Google's SSL site 'https://encrypted.google.com' to google.co.uk

I can get http://encrypted.google.com to redirect but not with HTTPS

I have tried changing HTTPS to HTTP before redirecting to google.co.uk

I have tried a couple of options to do this but they have failed.
RewriteCond Host: https://encrypted\.google\.com
RewriteRule (.*) http://google.co.uk/$1 [I,R]

RewriteCond %HTTPS (on)?.*
RewriteCond Host: encrpted\.google\.com
RewriteRule (.*) http(?1s)\://google.co.uk$1 [RP]

I am using the following to convert http://encrypted.google.com to google.co.uk
#RewriteCond Host: encrypted\.google\.com
#RewriteRule (.*) http\://google.co.uk [I,RP]

Current Rules:

[ISAPI_Rewrite]

# Force Strict Search for Google

RewriteRule (.*)?google\.co(.*intl/en/(.*).*) $1google.co$2 [I,L]
RewriteRule (.*)?google\.co(.*intl/en_uk/(.*).*) $1google.co$2 [I,L]
RewriteRule (.*)?google\.co(.*calendar(.*).*) $1google.co$2 [I,L]
RewriteRule (.*)?google\.co(.*/accounts(.*).*) $1google.co$2 [I,L]
RewriteRule (.*)?google\.co(.*/chrome(.*).*) $1google.co$2 [I,L]

RewriteRule (.*)?google\.co(.*url=http(.*).*) $1google.co$2 [I,L]
RewriteRule (.*)?google\.co(.*q=http(.*).*) $1google.co$2 [I,L]

#Google Force Safe Search and Disable Instant
RewriteRule (.*)?www.google\.co(.*/[^?]*)(\?.*)? $1www.google.co$2(?3$3&:\webhp?)safe=strict&complete=0 [I,L]
RewriteRule (.*)?images.google\.co(.*/[^?]*)(\?.*)? $1images.google.co$2(?3$3&:\webhp?)safe=strict&complete=0 [I,L]
RewriteRule (.*)?video.google\.co(.*/[^?]*)(\?.*)? $1video.google.co$2(?3$3&:\webhp?)safe=strict&complete=0 [I,L]


Any help on how to best achieve this would be much appreciated.

Thanks in advance
Julian

User avatar
Posts: 19
Joined: 21 Mar 2012, 06:22

Re: Redirect https://encrypted.google.com

30 Mar 2012, 07:28

Jul3s wrote:RewriteCond %HTTPS (on)?.*
RewriteCond Host: encrpted\.google\.com
RewriteRule (.*) http(?1s)\://google.co.uk$1 [RP]


Try this:

RewriteCond %HTTPS on.*
RewriteCond Host: encrypted\.google\.com
RewriteRule (.*) http\://google.co.uk$1 [I,RP]

BTW, what edition and build of the ISAPI_Rewrite 2 are you using?

User avatar
Posts: 5
Joined: 30 Mar 2012, 05:30

Re: Redirect https://encrypted.google.com

30 Mar 2012, 07:53

Hi Lexey,
Thanks for the response, i'm not going to be able to test it until Monday morning (out of core hours)

We are using version 2.15.78

Thanks again,
Julian

User avatar
Posts: 5
Joined: 30 Mar 2012, 05:30

Re: Redirect https://encrypted.google.com

02 Apr 2012, 04:12

Hi Lexey,
When i enter the above at the top it makes no difference, https://encrypted.google.com is still available. Any ideas?

Julian

User avatar
Posts: 19
Joined: 21 Mar 2012, 06:22

Re: Redirect https://encrypted.google.com

02 Apr 2012, 05:27

And how are you forcing requests to the encrypted.google.com to go to your server instead of the encrypted.google.com itself?

User avatar
Posts: 5
Joined: 30 Mar 2012, 05:30

Re: Redirect https://encrypted.google.com

02 Apr 2012, 11:06

Hi Lexey,
All i am trying to do is redirect https://encrypted.google.com to google.co.uk as i don't want anyone bypassing my content filtering (education based)

User avatar
Posts: 19
Joined: 21 Mar 2012, 06:22

Re: Redirect https://encrypted.google.com

02 Apr 2012, 12:48

Again, to redirect it you first need to ensure that any request to the encrypted.google.com will go through your server. How are you going to perform that? Or is it ISA version?

User avatar
Posts: 5
Joined: 30 Mar 2012, 05:30

Re: Redirect https://encrypted.google.com

03 Apr 2012, 05:31

We are using the TMG2010 version

User avatar
Posts: 19
Joined: 21 Mar 2012, 06:22

Re: Redirect https://encrypted.google.com

03 Apr 2012, 05:57

I am afaraid this redirect will never work because https traffic is encrypted, so the filter cannot process it.

Return to ISAPI_Rewrite 2.x

Who is online

Users browsing this forum: No registered users and 7 guests