<html><body><div style="font-family: arial, helvetica, sans-serif; font-size: 14pt; color: #000000"><div>Hi,<br data-mce-bogus="1"></div><div><br data-mce-bogus="1"></div><div>I'm using external_acl_type to handle web traffic based on authenticated user and destination.  I'm also passing the referer to the external acl.   I know referer isn't to be relied on, but right off the bat I see two ACL queries for a single URL.  One has a referrer and the other doesn't.<br data-mce-bogus="1"></div><div><br data-mce-bogus="1"></div><div>Here's the acl line from my squid.conf:<br data-mce-bogus="1"></div><div><br data-mce-bogus="1"></div><div>external_acl_type custom_acl_db cache=0 children-max=5 %ACL %DATA %ul %SRC %>rd %{Referer}>h (acl script name)<br data-mce-bogus="1"></div><div><br data-mce-bogus="1"></div><div>Here's the HTML from a very simple page I'm accessing:<br data-mce-bogus="1"></div><div><br data-mce-bogus="1"></div><div><pre id="line1"><span class="error" title="Start tag seen without seeing a doctype first. Expected “<!DOCTYPE html>”."><<span class="start-tag">HTML</span>></span><span>
<span id="line2"></span></span><span><<span class="start-tag">HEAD</span>></span><span class="error" title="Stray end tag “head”."></<span class="end-tag">HEAD</span>></span><span>
<span id="line3"></span></span><span class="error" title="An “body” start tag seen but an element of the same type was already open."><<span class="start-tag">BODY</span>></span><span>
<span id="line4"></span>
<span id="line5"></span></span><span><<span class="start-tag">IMG</span> <span class="attribute-name">SRC</span>="<a class="attribute-value" href="view-source:http://upload.wikimedia.org/wikipedia/en/thumb/5/53/Snoopy_Peanuts.png/200px-Snoopy_Peanuts.png" data-mce-href="view-source:http://upload.wikimedia.org/wikipedia/en/thumb/5/53/Snoopy_Peanuts.png/200px-Snoopy_Peanuts.png">http://domain1.com/image1.png</a>"></span><span>
<span id="line6"></span></span><span><<span class="start-tag">BR</span>></span><span>
<span id="line7"></span></span><span><<span class="start-tag">IMG</span> <span class="attribute-name">SRC</span>="<a class="attribute-value" href="view-source:http://static.rgscdn.com/images/xl/702021.jpg" data-mce-href="view-source:http://static.rgscdn.com/images/xl/702021.jpg">http://domain2.com/image2.jpg</a>"></span><span>
<span id="line8"></span>
<span id="line9"></span></span><span></<span class="end-tag">BODY</span>></span><span>
<span id="line10"></span></span><span></<span class="end-tag">HTML</span>></span><span></span></pre></div><div><br data-mce-bogus="1"></div><div>When I access that page through squid, I see one image's URL once, with no referrer, and the other one two times - once with a referrer and once without:<br data-mce-bogus="1"></div><div><br data-mce-bogus="1"></div><div> CustomAclDB - kevin 172.18.127.4 domain2.com <a href="http://(web">http://server_hosting_test_page</a>/test/ <br><br> CustomAclDB - kevin 172.18.127.4 domain1.com - <br><br> CustomAclDB - kevin 172.18.127.4 domain2.com - <br><br data-mce-bogus="1"></div><div><br data-mce-bogus="1"></div><div>Why the inconsistency?<br data-mce-bogus="1"></div><div><br data-mce-bogus="1"></div><div><br data-mce-bogus="1"></div><div>Thanks<br data-mce-bogus="1"></div><div><br data-mce-bogus="1"></div></div></body></html>