Something
public text v1 · immutable# No clue how you'd use setenvif for https. this is all hypothetical.
SetEnvIf https https_ref=1
<FilesMatch .*>
#Auth stuff below
#Access stuff
Order deny,allow
deny from all
allow from https_ref=1
statisfy all
</FilesMatch>