Hi Bernhard,
I faced the same issue trying to protect images and pdfs. In my case, the
entire wiki was private. but the urls to images and pdfs (if one knew) were
accessible to all. I tried many methods, but these two Location directives in
the apache virtual host config for my wiki solved the issue for me.
<Location "/<mywikiname>/Main_Page">
AuthType Basic
Require valid-user
</Location>
<Location "/<mywikiname>/images">
AuthType Basic
AuthGroupFile /path/to/mywiki-groups
Require group <mygroup>
</Location>
Hope this helps.
Thanks,
Poornima.
________________________________________
From: [email protected]
[[email protected]] on behalf of Scheid, Bernhard
[[email protected]]
Sent: Saturday, May 05, 2012 9:31 AM
To: [email protected]
Subject: [Mediawiki-l] protect images and pdfs
I am running a semi-public Wiki where some pages are reserved for internal use
(basically for copy-right reasons). While I can restrict access to the
respective wiki articles (using user groups and user rights), the same seems
not possible for pure image links (addressing the image, not the file page) or
pdf-links respectively. Is there a way to prohibit access to images and pdfs
either?
Bernhard
_______________________________________________
MediaWiki-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
_______________________________________________
MediaWiki-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l