<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body text="#464646" bgcolor="#FFFFFF">
<font face="Arial">Hi<br>
<br>
I have built my own squid url_rewrite_program <br>
<br>
protocol requires answering with<br>
<br>
# OK status=301|302 url=<br>
Or<br>
# OK rewrite-url=<a class="moz-txt-link-rfc2396E" href="http://blablaba">"http://blablaba"</a><br>
<br>
In my case, especially for trackers/ads i would like to say to
browsers: "Go away !" without need them to redirect.<br>
<br>
Sure i can use these methods but...<br>
<br>
1) 127.0.0.1 - browser is in charge of getting out<br>
</font><font face="Arial"><font face="Arial">----------------------------------------------------------------<br>
</font>OK status=302 url=<a class="moz-txt-link-rfc2396E" href="http://127.0.0.1">"http://127.0.0.1"</a> But this ain't clean
or polished.<br>
<br>
</font><br>
<font face="Arial"><font face="Arial">2) 127.0.0.1 - Squid is in
charge of getting out<br>
</font><font face="Arial"><font face="Arial">----------------------------------------------------------------<br>
</font>OK rewrite-url=<a class="moz-txt-link-rfc2396E" href="http://127.0.0.1">"http://127.0.0.1"</a> But this very very
ain't clean or polished.</font><br>
Squid claim in logs for an unreachable URL and pollute events<br>
<br>
<br>
3) Redirect to a dummy page with a deny acl<br>
----------------------------------------------------------------<br>
</font><font face="Arial"><font face="Arial">OK status=302
url=<a class="moz-txt-link-rfc2396E" href="http://dummy.com">"http://dummy.com"</a> <br>
acl dummy dstdomain </font></font><font face="Arial"><font
face="Arial"><font face="Arial"><font face="Arial">dummy.com</font></font><br>
http_access deny dummy<br>
deny_info TCP_RESET dummy<br>
<br>
</font>But it makes 2 connections to the squid for just stopping
queries.<br>
It seems not really optimized.<br>
<br>
I notice that for several reasons i cannot switch to an
external_acl <br>
<br>
Is there a way / idea ?<br>
<br>
<br>
Regards<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
</font>
</body>
</html>