neuroinformatics / mediawiki-extensions-RestrictImageDownload

MediaWiki Extension RestrictImageDownload

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

MediaWiki Extension RestrictImageDownload

Restrict image file downloads

Install

To install this extension, add the following to LocalSettings.php.

wfLoadExtension("RestrictImageDownload");

Optional settings

  • $wgRestrictImageFiles
    • image files to be restricted
    • default: []

Additional settings

Append following mod_rewrite rules for restricted file to images/.htaccess.

RewriteRule ^(0/00/Restrict_image\.png)$ /w/extensions/RestrictImageDownload/wrapper.php/$1 [L]
RewriteRule ^(thumb/0/00/Restrict_image\.png/.*)$ /w/extensions/RestrictImageDownload/wrapper.php/$1 [L]

License

This software is licensed under the MIT License.

Authors

About

MediaWiki Extension RestrictImageDownload

License:MIT License


Languages

Language:PHP 100.0%