Skip to content

Latest commit

 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

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

Stars

0 stars

Watchers

4 watching

Forks

Releases

Packages

Contributors

Languages