Skip to content

Block direct access to markdown docs and renovate.json - #17

Merged
AlexanderWagnerDev merged 1 commit into
mainfrom
claude/peaceful-cannon-88d4ye
Sep 12, 2026
Merged

AlexanderWagnerDev merged 1 commit into
mainfrom
claude/peaceful-cannon-88d4ye

Conversation

@AlexanderWagnerDev

@AlexanderWagnerDev AlexanderWagnerDev commented Sep 12, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Add a FilesMatch rule to .htaccess that denies public access to any *.md file and to renovate.json.
  • These files are already excluded from the deploy payload by the SFTP deploy workflow, but this adds a server-side safety net in case any of them ever end up in the web root (e.g. a manual upload, or a future deploy-path change).

Test plan

  • Deploy and confirm https://openrtmp.org/README.md and https://openrtmp.org/renovate.json return 403/404 instead of the file contents
  • Confirm normal site pages are unaffected

🤖 Generated with Claude Code

https://claude.ai/code/session_01CJGvJZXkV9CUHonq8wzEyt


Generated by Claude Code

Summary by CodeRabbit

  • Security
    • Restricted direct web access to Markdown documentation files and the Renovate configuration file.

Adds a FilesMatch rule denying public access to *.md files and
renovate.json, in case they ever land on the web root.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01CJGvJZXkV9CUHonq8wzEyt
@coderabbitai

coderabbitai Bot commented Sep 12, 2026

Copy link
Copy Markdown

Review Change StackReview Change Stack

Caution

Review failed

The pull request is closed.

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Advanced

Run ID: b29fccf9-82cb-4e3f-ad1c-14fa814d5bc1

📥 Commits

Reviewing files that changed from the base of the PR and between aa26a9d and 5bd974e.

📒 Files selected for processing (1)
  • .htaccess

📝 Walkthrough

Walkthrough

The .htaccess file adds an Apache FilesMatch rule that denies HTTP access to .md files and renovate.json.

Changes

Repository metadata access restrictions

Layer / File(s) Summary
Apache file protection
.htaccess
Adds a FilesMatch block that returns access denied for Markdown files and renovate.json.

Estimated code review effort: 1 (Trivial) | ~5 minutes

Change: Bug fix

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch claude/peaceful-cannon-88d4ye

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@sonarqubecloud

Copy link
Copy Markdown

@AlexanderWagnerDev
AlexanderWagnerDev marked this pull request as ready for review September 12, 2026 22:57
@cursor

cursor Bot commented Sep 12, 2026

Copy link
Copy Markdown

Bugbot couldn't run - usage limit reached

Bugbot is counted against Cursor usage for this user or team, and this run hit a usage or spend limit.

A user or team admin can review and increase usage limits in the Cursor dashboard.

(requestId: serverGenReqId_3d952c3e-0d3a-4da1-9b2f-a5dae1a08523)

@AlexanderWagnerDev
AlexanderWagnerDev merged commit ef5ae97 into main Sep 12, 2026
7 of 8 checks passed
@AlexanderWagnerDev
AlexanderWagnerDev deleted the claude/peaceful-cannon-88d4ye branch September 12, 2026 22:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants