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.

1.0(2mo ago)32.4k—3.6%1BSD-3-ClausePHP

Since Oct 9Pushed 2mo 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 1.x Synced 2d ago

READMEChangelog (10)Dependencies (2)Versions (14)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 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, Compatibility
---------------------------

[](#requirements-compatibility)

- **Version 0.x**: Compatible with Silverstripe ^4 | ^5 (silverstripe/asset-admin ^1 | ^2)
- **Version 1.x**: Requires Silverstripe ^6 (silverstripe/asset-admin ^3)

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

48

—

FairBetter than 93% of packages

Maintenance86

Actively maintained with recent releases

Popularity24

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 96.6% 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 ~165 days

Recently: every ~257 days

Total

11

Last Release

73d ago

Major Versions

0.3.0 → 1.02026-04-21

### 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 (28 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.

67688.3k59](/packages/bummzack-sortablefile)[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)
