How to compare cookie value to request URL

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

 



Title: How to compare cookie value to request URL

Hi,

In the webserver configuration, I need to compare the value of a cookie against the request URL.

E.g. on a request for /path/to/files/abc.zip, return the file if the cookie contains the file name: MYCOOKIE=abc.zip. Otherwise redirect to a different page.

With RewriteCond, I can compare the cookie value to a static value or a regular _expression_, but not to another variable. Is there any way to do that?

Any help is appreciated,
thanks,
Ursula


[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