Hi
I know that a lot of people have asked this topic. However is it possible to protect folders using PHP and .htaccess. I want to do it such that if anybody directly accesses the files in a folder such as PDFs, ZIPs, PowerPoint Presentations, etc, Apache redirects them to a login page which is written in PHP. However if they were logged in before they went to the protected folder, it would allow them direct access to the files that they want to access.
Is this possible?