On Wed, Jan 8, 2025 at 7:41 PM Eric Covener wrote:
>
> On Wed, Jan 8, 2025 at 1:27 PM Rainer Canavan
> wrote:
> >
> > Hi,
> >
> > I'd like to short-circuit certain requests that contain no session
> > cookie with a HTTP 403, an ErrorDocument and a few response headers.
> >
> > The following almos
On Wed, Jan 8, 2025 at 1:27 PM Rainer Canavan
wrote:
>
> Hi,
>
> I'd like to short-circuit certain requests that contain no session
> cookie with a HTTP 403, an ErrorDocument and a few response headers.
>
> The following almost works:
>
> RewriteCond %{REQUEST_METHOD} !OPTIONS
> RewriteCond %{HTTP
Hi,
I'd like to short-circuit certain requests that contain no session
cookie with a HTTP 403, an ErrorDocument and a few response headers.
The following almost works:
RewriteCond %{REQUEST_METHOD} !OPTIONS
RewriteCond %{HTTP_COOKIE} !session=
RewriteRule ^/foo - [E=FOO:FOO,R=403,L]
Header alwa