Talk:How to protect the access to the documents in a course?

From ClarolineDoc

I test your htaccess, and it seems to be lots of problem with the auth type basic, which need a password. and the variable local_ref

i use this code and put the htaccess in the directory http://pedagogie.ec-lyon.fr/COURSES

SetEnvIfNoCase Referer "^http://pedagogie.ec-lyon.fr/*" allowed=1

SetEnvIfNoCase Referer "^https://pedagogie.ec-lyon.fr/*" allowed=1

<FilesMatch "*.*">

Order Allow,Deny

Allow from env=allowed

</FilesMatch>


it really forbids the access directly from an external link, without forbid internal access.