Search squid archive

Re: analyze http header?

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

 



I want to use a 'secret' http header entry instead of using a username with
password for user authentication. Let's say 'only if the browser set
a 'UseSquidProxy true entry' the access is ok. Otherwise it is forbidden.

I found only header_access and header_replace in the documentation, but this
does not what I need.


Hi Michael,

you can use the "req_header" ACL to achieve this:
http://www.squid-cache.org/Doc/config/acl/

Example (not tested):

  acl USESQUIDPROXY req_header UseSquidProxy true
  http_access allow USESQUIDPROXY
  http_access deny all


Hope this helps,
Constantin


[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux