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: mediawiki-l-bounces(a)lists.wikimedia.org [mediawiki-l-bounces(a)lists.wikimedia.org] on
behalf of Scheid, Bernhard [Bernhard.Scheid(a)oeaw.ac.at]
Sent: Saturday, May 05, 2012 9:31 AM
To: mediawiki-l(a)lists.wikimedia.org
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
MediaWiki-l(a)lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l