title: htaccess block access to subfolder without existence of cookie
body: <p>I´m trying to allow access to <code>data/party/*</code> only for users with a certain cookie. Therefore I´ve extended my .htaccess in root dir. The last part should check URI for the subfolder and the existence of a cookie. Unfortunately it´s not blocking access. Important: I´d like to have the .htaccess in webroot not in the subfolder <code>data/party</code>. mod_rewrite is enabled. thanks for help!</p>
  
  <pre><code>RewriteEngine On
  RewriteRule ^(app|dict|ns|tmp)\/|\.ini$ - [R=404]    
  RewriteCond %{REQUEST_FILENAME} !-l
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteRule .* index.php [L,QSA]
  RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L]
  
  RewriteCond "%{HTTP_HOST}_%{HTTP_REFERER}" "!\.?([^\.]+\.[^\.]+?)_https?://.*\1/.*$"
  RewriteRule \.(woff|eot|ttf|svg|woff2|otf)$ - [F,NC,L]
  
  # NOT WORKING
  RewriteCond %{REQUEST_URI} ^data/party
  RewriteCond %{HTTP_COOKIE} !AllowDataAccess=YesYouCanBoogie
  RewriteRule .* - [L,F]
  </code></pre>