Search squid archive

Re: url_write_program: redirecting fails when intercepting https

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



What squid.conf are you using with this script?

 

Eliezer

 

----

Eliezer Croitoru
Linux System Administrator
Mobile: +972-5-28704261
Email: eliezer@xxxxxxxxxxxx

 

From: squid-users [mailto:squid-users-bounces@xxxxxxxxxxxxxxxxxxxxx] On Behalf Of Moataz Elmasry
Sent: Thursday, June 30, 2016 3:16 AM
To: squid-users@xxxxxxxxxxxxxxxxxxxxx
Subject: url_write_program: redirecting fails when intercepting https

 

Hi all,

 

I'm writing a small bash program script to redirect any request to say www.google.com. This script is able to redirect any http script to google.com, but not https requests. 

I read the documentation

But this seem quite complex for my task. Basically I just want to redirect any domain, without looking into the full path. Knowing the domain name should not be counted as violation or interception of https I hope

 

Here's the script which works with http but not https:

 

"

#!/bin/bash

while true;

do

  read input;

  if [[ "$old_url" =~ ".google.com" ]]; then

    echo "ERB"

  else

    echo "echo '303:https://www.google.com"

  fi

done

"

 

Any ideas how to solve that?

 

Regards and thanks

_______________________________________________
squid-users mailing list
squid-users@xxxxxxxxxxxxxxxxxxxxx
http://lists.squid-cache.org/listinfo/squid-users

[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux