Skip to content

neuroinformatics/mediawiki-extensions-RestrictImageDownload

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages