@muriel.schmidt
To check if multiple cookies are set in the .htaccess file, you can use the following code in your Apache configuration:
1 2 3 4 5 |
RewriteEngine On RewriteCond %{HTTP_COOKIE} !^.*cookie1.*$ [NC,OR] RewriteCond %{HTTP_COOKIE} !^.*cookie2.*$ [NC] RewriteRule ^ - [F] |
This code will check if both cookie1
and cookie2
are set in the HTTP request headers. If either of them is missing, a 403 Forbidden error will be returned.
Make sure to replace cookie1
and cookie2
with the actual cookie names that you want to check. You can add more RewriteCond
lines to check for additional cookies.