You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Ben Barker <be...@bbarker.co.uk> on 2016/10/21 09:05:56 UTC

[users@httpd] Require expr

Hi,

I am running Apache 2.2.24
I have a site protected by basic authentication

Ideally, I would like to be able to bypass that authentication on provision
of a suitable query string, such that:

http://...../page.html asks for auth
http://...../page.html?secret=xxxxxxx does not

So far as I can see, this is possible in apache 2.4 using the below in a
.htaccess file:

Require expr %{QUERY_STRING} = secret=xxxx


However, this does not seem to work in apache 2.2.4. Is this correct, and,
if it is, is there an alternative (other than upgrading apache)