Restrict image file downloads
To install this extension, add the following to LocalSettings.php.
wfLoadExtension("RestrictImageDownload");
$wgRestrictImageFiles
- image files to be restricted
- default:
[]
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]
This software is licensed under the MIT License.