<div dir="ltr">Putting src tries to match IP of the PC from which the request originated. <div>But thanks, I got this figured out with the referer_regex acl, it looks something like this:</div><div><br></div><div>acl referer_allowsrc referer_regex -i ^<a href="http://testing.abc.com">http://testing.abc.com</a> [here <a href="http://testing.abc.com">testing.abc.com</a> is the referring site]</div><div>header_access Referer deny referer_allowsrc</div><div> </div><div>this strips the reference header whenever there is <a href="http://testing.abc.com">testing.abc.com</a> in the reference header.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Jan 11, 2015 at 3:36 AM, Yuri Voinov <span dir="ltr"><<a href="mailto:yvoinov@gmail.com" target="_blank">yvoinov@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000">
<br>
-----BEGIN PGP SIGNED MESSAGE----- <br>
Hash: SHA1 <br>
<br>
<a href="http://wiki.squid-cache.org/SquidFaq/SquidAcl#Differences_between_.27.27src.27.27_and_.27.27srcdomain.27.27_ACL_types" target="_blank">http://wiki.squid-cache.org/SquidFaq/SquidAcl#Differences_between_.27.27src.27.27_and_.27.27srcdomain.27.27_ACL_types</a><br>
<br>
For the /srcdomain/ ACL type, Squid does a reverse lookup of the
client's IP address and checks the result with the domains given on
the /acl <a href="http://www.eu.squid-cache.org/Doc/config/acl" target="_blank"><http://www.eu.squid-cache.org/Doc/config/acl></a>/ line.
With the/src/ ACL type, Squid converts hostnames to IP addresses at
startup and then only compares the client's IP address. The /src/
ACL is preferred over/srcdomain/ because it does not require
address-to-name lookups for each request.<br>
<br>
<br>
10.01.2015 19:45, Prasad Yalla пишет:<br>
<span style="white-space:pre-wrap"><span class="">> I have a requirement to remove
Referer header when a certain of my sites make a reference and not
all.<br>
> I managed to remove Referer selectively based on the
destination domain, but how do I do it based on the originating
site?<br>
> Here is how it did for destination domain:<br>
><br></span>
> acl referer_allowdst dstdomain <a href="http://google.com" target="_blank">google.com</a>
<a href="http://google.com" target="_blank"><http://google.com></a><span class=""><br>
> header_access Referer deny referer_allowdst<br>
><br>
> When i use srcdomain here it doesn't work. This is an urgent
requirement, can someone help me with this please?<br>
><br>
><br></span>
> _______________________________________________<br>
> squid-users mailing list<br>
> <a href="mailto:squid-users@lists.squid-cache.org" target="_blank">squid-users@lists.squid-cache.org</a><br>
> <a href="http://lists.squid-cache.org/listinfo/squid-users" target="_blank">http://lists.squid-cache.org/listinfo/squid-users</a></span><br>
<br>
-----BEGIN PGP SIGNATURE-----
<br>
Version: GnuPG v2
<br>
<br>
iQEcBAEBAgAGBQJUsaJyAAoJENNXIZxhPexG3xQH/je1rGfb0MfMzYbmHSMD2SL0
<br>
Y2mc7hccrmoYpRTwjOCK1NmEvoenj3J6stbKGDidoB+BYhuUjt5/xJ+HDA3MjC7C
<br>
q+zpt4SdumnXBWiK+tn/RP/pK/TnjqOWcnEpnvctdpXbjJuhUvwf3pZ9/7EG1wPs
<br>
R86T8RURbKEBo1IfeSbQrjNWwxt93bt6bOjrRmnc1QEkh8TC+bNGYdug2RM3TkMl
<br>
+FBJUL7H/bmlile1vRUot/jEWNWGPP4GyP8rZhp0UcCzepCIX0QW8SepefSmwkQk
<br>
lavMU/hrHoIZQdioZkAw/s0uDxr2U3Z4zUg9kiQt58vC3DuWM96jqWndP1TkTug=
<br>
=02mh
<br>
-----END PGP SIGNATURE-----
<br>
<br>
</div>
</blockquote></div><br></div>