PHPackages                             lerni/folderindex - 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. [File &amp; Storage](/categories/file-storage)
4. /
5. lerni/folderindex

ActiveSilverstripe-vendormodule[File &amp; Storage](/categories/file-storage)

lerni/folderindex
=================

Silverstripe Extension to send noindex, nofollow for files in foldes that do not ShowInSearch.

0.3.0(2y ago)32.3k↓25%1[1 issues](https://github.com/lerni/folderindex/issues)BSD-3-ClausePHP

Since Oct 9Pushed 3mo ago2 watchersCompare

[ Source](https://github.com/lerni/folderindex)[ Packagist](https://packagist.org/packages/lerni/folderindex)[ Docs](https://github.com/lerni/folderindex)[ RSS](/packages/lerni-folderindex/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (9)Dependencies (1)Versions (13)Used By (0)

Silverstripe FolderIndex
========================

[](#silverstripe-folderindex)

Silverstripe FolderIndex allows you to manage visibility of files for search engines on a parent folder basis by utilizing X-Robots header tags such as `noindex`, `nofollow`, `noimageindex`, `noarchive`, and `nosnippet`. By unchecking the `ShowInSearch` option in the `Details` tab of a folder, X-Robots headers will be applied to all files contained within, including those in sub-folders. If you have `tractorcow/silverstripe-robots` module installed, "unchecked folders" are also disallowed in `robots.txt`.

The module introduces `NoFileIndex()` function to `File`. This can be useful if for example an image should be included in a XML sitemaps, schemas etc. And is used in CMS/Assets context to indicate whether a file has X-Robots-Tag headers set through its parent folder or any higher-level ancestor/folder. If set, the function returns the corresponding folder that prevents indexing; otherwise, it returns false. This module integrates with Apache `.htaccess` and also proved to work with Litespeed.

Requirements
------------

[](#requirements)

- silverstripe/asset-admin: ^1 | ^2

Installation
------------

[](#installation)

[Composer](https://getcomposer.org/) is the recommended method for installing Silverstripe modules.

`composer require lerni/folderindex`

Run `dev/build`

Getting Started / Usage
-----------------------

[](#getting-started--usage)

- Uncheck `Indexing child files` checkbox of a folder under `Permissions`, save and rules will automatically generate in `assets/.htaccess`.

[![Folder 'ShowInSearch' Checkbox](docs/assets/folder.png?raw=true "Folder 'ShowInSearch' Checkbox")](docs/assets/folder.png?raw=true)[![File X-Robots Notification](docs/assets/file.png?raw=true "File X-Robots Notification")](docs/assets/file.png?raw=true)

Please note this module "overwrites" `SilverStripe/Assets/Flysystem/PublicAssetAdapter_HTAccess.ss` template.

Credits
-------

[](#credits)

Thanks to [@zauberfisch](https://github.com/zauberfisch/) and [@digitall-it](https://github.com/digitall-it/) for inspiration and translation.

ToDo
----

[](#todo)

- Implement a mechanism to write to `assets/.htaccess` directly, rather than relying solely on `dev/build`.
- Address issue where roles are erroneously assigned to sub-folders that are blocked through parent folders.
- Provide ability to configure X-Robots-Tag settings through yml-config.
- Display X-Robots-Tag warning (alert) in the file section, not just in the Details panel.

###  Health Score

35

—

LowBetter than 80% of packages

Maintenance46

Moderate activity, may be stable

Popularity25

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity47

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 95.8% 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.

###  Release Activity

Cadence

Every ~168 days

Recently: every ~356 days

Total

10

Last Release

168d ago

Major Versions

0.3.0 → 1.x-dev2025-12-01

### Community

Maintainers

![](https://www.gravatar.com/avatar/e68b89567976eada21fddc5e776f4adcbe15ad846150cbcde6eb24bc185a8e5f?d=identicon)[lerni](/maintainers/lerni)

---

Top Contributors

[![lerni](https://avatars.githubusercontent.com/u/472115?v=4)](https://github.com/lerni "lerni (23 commits)")[![digitall-it](https://avatars.githubusercontent.com/u/3578378?v=4)](https://github.com/digitall-it "digitall-it (1 commits)")

---

Tags

assetsfilenoindexsilverstripex-robots-tagimagesilverstripefileassetsnoindex

### Embed Badge

![Health badge](/badges/lerni-folderindex/health.svg)

```
[![Health](https://phpackages.com/badges/lerni-folderindex/health.svg)](https://phpackages.com/packages/lerni-folderindex)
```

###  Alternatives

[bummzack/sortablefile

An extension for SilverStripe that adds sorting to UploadField.

70622.7k55](/packages/bummzack-sortablefile)[silverstripe/selectupload

Enables files to be uploaded into a user-designated folder

2779.1k1](/packages/silverstripe-selectupload)[liyunfang/yii2-upload-behavior

Upload behavior for Yii 2

161.7k](/packages/liyunfang-yii2-upload-behavior)

PHPackages © 2026

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