Skip to content

Block access to Composer files and vendor/ - #23

Open
nursoda wants to merge 1 commit into
getkirby:mainfrom
nursoda:block-composer-files
Open

nursoda wants to merge 1 commit into
getkirby:mainfrom
nursoda:block-composer-files

Conversation

@nursoda

@nursoda nursoda commented Nov 19, 2026

Copy link
Copy Markdown

The default .htaccess blocks content/, site/ and kirby/. It does not block vendor/, composer.json and composer.lock.

These files exist after composer install. On our test site they were publicly accessible.

  1. composer.json and composer.lock show the exact Kirby version. The security guide advises against making the version public.
  2. vendor/ contains PHP files. They should not be callable directly.

This PR adds two rules after the kirby/ rule and updates the revision date. We use the same rules on our site.

The security guide lists the blocked folders. It could mention these rules too. I can open a PR for the docs if you like.

🤖 Generated with Claude Code

`composer.json` and `composer.lock` show the exact Kirby version. The Kirby security guide advises against making the version public. `vendor/` contains PHP files that should not be callable directly.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Olav Seyfarth <olav@seyfarth.de>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant