I am trying to restrict the download of certain files to a custom user role that I created through Advanced Access Manager. The page that links to the files is being hidden/restricted correctly, but the files (which were automatically marked to have restricted access when I inserted them into the page) are not protected and can be downloaded by anyone with the address. I created the protected page and uploaded the files after installing UAM. I've tried both 'regular' and fopen modes.
I thought that it had correctly restricted the files before, but perhaps my .htaccess is automatically getting overwritten? I'm also using Better WP Security.