Search squid archive

squid url_rewrite_program how to return a kind of TCP reset

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

 



Hi

I have built my own squid url_rewrite_program

protocol requires answering with

# OK status=301|302 url=""> Or
# OK rewrite-url="" class="moz-txt-link-rfc2396E" href="http://blablaba">"http://blablaba"

In my case, especially for trackers/ads i would like to say to browsers: "Go away !" without need them to redirect.

Sure i can use these methods but...

1) 127.0.0.1 - browser is in charge of getting out
----------------------------------------------------------------
OK status=302 url="" class="moz-txt-link-rfc2396E" href="http://127.0.0.1">"http://127.0.0.1" But this ain't clean or polished.


2) 127.0.0.1 - Squid is in charge of getting out
----------------------------------------------------------------
OK rewrite-url="" class="moz-txt-link-rfc2396E" href="http://127.0.0.1">"http://127.0.0.1" But this very very ain't clean or polished.

Squid claim in logs for an unreachable URL and pollute events


3) Redirect to a dummy page with a deny acl
----------------------------------------------------------------
OK status=302 url="" class="moz-txt-link-rfc2396E" href="http://dummy.com">"http://dummy.com"
acl dummy dstdomain
dummy.com
http_access deny dummy
deny_info TCP_RESET dummy

But it makes 2 connections to the squid for just stopping queries.
It seems not really optimized.

I notice that for several reasons i cannot switch to an external_acl

Is there a way / idea ?


Regards








_______________________________________________
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