<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p>Solved !</p>
<p>I had to add more than only google.com/recaptcha/ ...<br>
</p>
<p>So do : <span style="color: rgb(32, 33, 34); font-family:
sans-serif; font-size: 14px; font-style: normal;
font-variant-ligatures: normal; font-variant-caps: normal;
font-weight: 400; letter-spacing: normal; orphans: 2;
text-align: start; text-indent: 0px; text-transform: none;
white-space: normal; widows: 2; word-spacing: 0px;
-webkit-text-stroke-width: 0px; background-color: rgb(255, 255,
255); text-decoration-thickness: initial; text-decoration-style:
initial; text-decoration-color: initial; display: inline
!important; float: none;">tail -f /var/log/squid/access.log</span></p>
<p><span style="color: rgb(32, 33, 34); font-family: sans-serif;
font-size: 14px; font-style: normal; font-variant-ligatures:
normal; font-variant-caps: normal; font-weight: 400;
letter-spacing: normal; orphans: 2; text-align: start;
text-indent: 0px; text-transform: none; white-space: normal;
widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px;
background-color: rgb(255, 255, 255); text-decoration-thickness:
initial; text-decoration-style: initial; text-decoration-color:
initial; display: inline !important; float: none;">I had to add
(not all mandatory) : .ireby.fr .mozilla.org .callnowbutton.com
.googleapis.com .consentmanager.net .googletagmanager.com
.gstatic.com<br>
</span></p>
<p><span style="color: rgb(32, 33, 34); font-family: sans-serif;
font-size: 14px; font-style: normal; font-variant-ligatures:
normal; font-variant-caps: normal; font-weight: 400;
letter-spacing: normal; orphans: 2; text-align: start;
text-indent: 0px; text-transform: none; white-space: normal;
widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px;
background-color: rgb(255, 255, 255); text-decoration-thickness:
initial; text-decoration-style: initial; text-decoration-color:
initial; display: inline !important; float: none;">Thanks a lot.</span></p>
<p><span style="color: rgb(32, 33, 34); font-family: sans-serif;
font-size: 14px; font-style: normal; font-variant-ligatures:
normal; font-variant-caps: normal; font-weight: 400;
letter-spacing: normal; orphans: 2; text-align: start;
text-indent: 0px; text-transform: none; white-space: normal;
widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px;
background-color: rgb(255, 255, 255); text-decoration-thickness:
initial; text-decoration-style: initial; text-decoration-color:
initial; display: inline !important; float: none;">Dsant from
France<br>
</span></p>
<p><span style="color: rgb(32, 33, 34); font-family: sans-serif;
font-size: 14px; font-style: normal; font-variant-ligatures:
normal; font-variant-caps: normal; font-weight: 400;
letter-spacing: normal; orphans: 2; text-align: start;
text-indent: 0px; text-transform: none; white-space: normal;
widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px;
background-color: rgb(255, 255, 255); text-decoration-thickness:
initial; text-decoration-style: initial; text-decoration-color:
initial; display: inline !important; float: none;"><br>
</span></p>
<div class="moz-cite-prefix">On 2/20/24 09:40, Stephen Borrill
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:ae7064d8-5531-4a03-811a-ff6a00ede05f@borrill.org.uk">On
20/02/2024 08:06, Dsant wrote:
<br>
<blockquote type="cite">Hello, I set up a squid proxy, I want to
allow some sites, Google recaptcha and block everything else.
<br>
<br>
acl mydest dstdomain .projet-voltaire.fr
<br>
http_access allow mydest
<br>
acl google_recaptcha url_regex ^www.google.com/recaptcha/$
<br>
http_access allow google_recaptcha
<br>
http_access deny all
<br>
<br>
The captcha is not showing. A syntax error ?
<br>
</blockquote>
<br>
<a class="moz-txt-link-abbreviated" href="http://www.google.com">www.google.com</a> is an HTTPS site. This means that from the point of
view of the proxy, only the hostname is visible (i.e.
<a class="moz-txt-link-abbreviated" href="http://www.google.com">www.google.com</a>) and so your regex can never match. Look in your
logs, you will see:
<br>
<br>
CONNECT <a class="moz-txt-link-abbreviated" href="http://www.google.com">www.google.com</a>
<br>
<br>
and not:
<br>
<br>
GET <a class="moz-txt-link-freetext" href="http://www.google.com/recaptcha/">http://www.google.com/recaptcha/</a>
<br>
<br>
The only way round this is to use ssl_bump to intercept and
decrypt the traffic so that the HTTP request is visible. This is,
however, not for the faint-hearted and will require a CA
certificate to be installed on each client machine.
<br>
<br>
</blockquote>
</body>
</html>