tl;dr: How do I do the following in a .conf or .htaccess file:
# Do A # Do B &
You could bypass the need to know by using mod_rewrite for your access control:
RewriteEngine On RewriteCond %{REQUEST_URI} !\.(long|list|file|types)$ RewriteRule .* - [F,L]