Permission for HTML Files in www Folder

I have a unique requirement that certain HTML pages should be accessible to certain types of frappe roles/users only, so is it possible that we restrict page in www folder and define access