PHPackages                             mediawiki/smw-file-protect - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Security](/categories/security)
4. /
5. mediawiki/smw-file-protect

ActiveMediawiki-extension[Security](/categories/security)

mediawiki/smw-file-protect
==========================

Protects files and namespaces in Semantic MediaWiki based on user rights and properties.

042PHP

Since Oct 7Pushed 7mo ago3 watchersCompare

[ Source](https://github.com/ProteoWiki/SMWFileProtect)[ Packagist](https://packagist.org/packages/mediawiki/smw-file-protect)[ RSS](/packages/mediawiki-smw-file-protect/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

SMWFileProtect
==============

[](#smwfileprotect)

Extension to protect access to files based on which pages images are embedded and the SMW properties assigned to that page.

Please check [http://www.mediawiki.org/wiki/Manual:Image\_Authorization](http://www.mediawiki.org/wiki/Manual:Image_Authorization) for proper setup first.

**DISCLAIMER**: *Only Lockdown functions are currently working. SMW ones are disabled for now.*

Parameters
----------

[](#parameters)

```
$SMWFileProtectRights = array("sysop"); // Which roles are always allowed to view files no matter the linked pages

$SMWFileProtectReferUsers = array("Has User"); // Property that refers to pages that link to other pages, for instance user pages, assuming that a page is created or assigned to a user

$SMWFileProtectReferProps = array("Is Visible"); // Boolean property that can be used to grant permission to the page.

$SMWFileProtectReferNS = true; // This allows to block viewing based on Lockdown Extension https://www.mediawiki.org/wiki/Extension:Lockdown

```

###  Health Score

19

—

LowBetter than 10% of packages

Maintenance44

Moderate activity, may be stable

Popularity8

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity13

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/5218ca0754245ef120fb4ebc1c520616cb8339e5e4f81301e4906893859d5404?d=identicon)[toniher](/maintainers/toniher)

---

Top Contributors

[![toniher](https://avatars.githubusercontent.com/u/535539?v=4)](https://github.com/toniher "toniher (19 commits)")

### Embed Badge

![Health badge](/badges/mediawiki-smw-file-protect/health.svg)

```
[![Health](https://phpackages.com/badges/mediawiki-smw-file-protect/health.svg)](https://phpackages.com/packages/mediawiki-smw-file-protect)
```

###  Alternatives

[defuse/php-encryption

Secure PHP Encryption Library

3.9k162.4M214](/packages/defuse-php-encryption)[mews/purifier

Laravel 5/6/7/8/9/10 HtmlPurifier Package

2.0k16.7M113](/packages/mews-purifier)[robrichards/xmlseclibs

A PHP library for XML Security

41478.1M118](/packages/robrichards-xmlseclibs)[bjeavons/zxcvbn-php

Realistic password strength estimation PHP library based on Zxcvbn JS

87117.5M63](/packages/bjeavons-zxcvbn-php)[illuminate/encryption

The Illuminate Encryption package.

9229.7M280](/packages/illuminate-encryption)[paragonie/hidden-string

Encapsulate strings in an object to hide them from stack traces

7410.6M39](/packages/paragonie-hidden-string)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
