hi.
i have a form which allows the user to upload some files to a folder.
i've edit the .htaccess file in that directory to protect this folder from allowing the unwanted visitors to download the contents manually by typing the full url ex: http://www.bkabkabka.com/a/b/c/document.pdf
and this is the .htaccess data
Options All -Indexes
<FilesMatch "\.(htaccess|doc|pdf|docx)$">
Order Allow,Deny
Deny from all
i have another administration page which allows the responsible guy from our side to download the files by filtering them to anything he want and then click on a html link to normally download the files. ex:
id name filename
1 aaaaa --> filename1 <-- this is href link which contains for example http://www.bkabkabka.com/a/b/c/2.doc
the problem is that the htaccess modification is applying globaly and i want to create like a username and password to this folder and then use PHP code to connect to this folder and be able to download the files normally.
how can i do that?
thank you.