Forum Moderators: phranque
mysite.com/docs/1.doc
it returns 403 which i was able to do with this:
<FilesMatch "\.doc$">
Deny from all
</FilesMatch>
but i do want people who are logged in and click on the link to have access to the files. the usernames and pw's are stored in a mysql database. is there anyway to allow access to the files if they click on a link opposed to just entering the url to the file?
We need to know what kind of "logging in" people are doing.
If it's just straight on to the server with Apache's authentication, you can use something like:
AuthType Basic
AuthName "Login"
AuthUserFile /[...]somewhere[...]/.htpasswd
require valid-user
but we really need some more info.
Cheers,
J.