[squid-users] url_write_program: redirecting fails when intercepting https
Eliezer Croitoru
eliezer at ngtech.co.il
Thu Jun 30 06:13:14 UTC 2016
What squid.conf are you using with this script?
Eliezer
----
<http://ngtech.co.il/lmgtfy/> Eliezer Croitoru
Linux System Administrator
Mobile: +972-5-28704261
Email: eliezer at ngtech.co.il
From: squid-users [mailto:squid-users-bounces at lists.squid-cache.org] On Behalf Of Moataz Elmasry
Sent: Thursday, June 30, 2016 3:16 AM
To: squid-users at lists.squid-cache.org
Subject: [squid-users] 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 <http://www.google.com> . This script is able to redirect any http script to google.com <http://google.com> , but not https requests.
I read the documentation
http://wiki.squid-cache.org/Features/HTTPS
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 <http://google.com> " ]]; then
echo "ERB"
else
echo "echo '303:https://www.google.com"
fi
done
"
Any ideas how to solve that?
Regards and thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squid-cache.org/pipermail/squid-users/attachments/20160630/6db4296e/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 11297 bytes
Desc: not available
URL: <http://lists.squid-cache.org/pipermail/squid-users/attachments/20160630/6db4296e/attachment.png>
More information about the squid-users
mailing list