Restrict access to files

Hi there,
I’d like to restrict access to a couple of files on my Jekyll-based GitHub Page. I have an HTML that loads a JS which in turn would load private stuff I don’t want to be publicly available (neither via direct link, nor via directory listing). AFAIK, .htaccess files aren’t supported on GitHub Pages. Is there an alternative solution?