Protecting html files

I am interested in protecting all media assets in a folder, specifically HTML files. Using the Patreon WordPress plugin, I am able to protect posts only (and possibly images with the Enable image locking features setting.) But I need to protect book chapters that are html files.

Make entire site Patron-only with Pledge Level also does not prevent people from directly accessing media content.

How can I protect access to HTML files?

You can do that by copying the htaccess rule that the image locking logic drops in your .htaccess file and changing it to affect all files. But in that case, all files in that directory would be served via php instead of only image files. This may be problematic depending on your post.