[users@httpd] SetEnvIf only if 2 regex match?

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

 



Hi all,

for testing purpose i would need ti allow access to a server only if the client confroms to 2 tests. I RTFMed, but can't find a solution.

let's say i want to allow my client only if it comes from a specific IP and with a specific browser.

I've tried this (and many variants) without success:

SetEnvIf Remote_Addr ^192\.168\.0\.2$ welcome
BrowserMatch !"^Mozilla" !welcome
Order Allow,Deny
Allow from env=welcome


There must be an easier but though apache doc says that a test can be made on a earlier SetEnvIf result, i can't figure how it work, that's why i tried the above method.


Thanks for your help

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
  "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux