[PR #2469] feat: protect signing URLs from indexing, caching, and embedding #2327

Open
opened 2026-02-26 20:33:24 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/documenso/documenso/pull/2469
Author: @ephraimduncan
Created: 2/10/2026
Status: 🔄 Open

Base: mainHead: feat/protect-signing-urls


📝 Commits (1)

  • bdb23da feat: protect signing URLs from indexing, caching, and embedding

📊 Changes

3 files changed (+21 additions, -0 deletions)

View changed files

📝 apps/remix/app/routes/_recipient+/_layout.tsx (+7 -0)
apps/remix/public/robots.txt (+4 -0)
📝 apps/remix/server/middleware.ts (+10 -0)

📄 Description

Summary

  • Add robots.txt disallowing /sign/, /d/, /embed/ paths
  • Add protective HTTP headers (Cache-Control, X-Robots-Tag, X-Frame-Options, CSP, Referrer-Policy) to signing routes via Hono middleware
  • Add meta export to recipient layout with noindex robots tag and generic title, stripping OG/Twitter meta from signing pages

Embed routes are unaffected — the middleware regex only matches paths starting with /sign/ or /d/, and the meta export is scoped to the _recipient+ layout hierarchy.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/documenso/documenso/pull/2469 **Author:** [@ephraimduncan](https://github.com/ephraimduncan) **Created:** 2/10/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `feat/protect-signing-urls` --- ### 📝 Commits (1) - [`bdb23da`](https://github.com/documenso/documenso/commit/bdb23da5383233f053eedfd808f2648ed0c0d31a) feat: protect signing URLs from indexing, caching, and embedding ### 📊 Changes **3 files changed** (+21 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `apps/remix/app/routes/_recipient+/_layout.tsx` (+7 -0) ➕ `apps/remix/public/robots.txt` (+4 -0) 📝 `apps/remix/server/middleware.ts` (+10 -0) </details> ### 📄 Description ## Summary - Add `robots.txt` disallowing `/sign/`, `/d/`, `/embed/` paths - Add protective HTTP headers (Cache-Control, X-Robots-Tag, X-Frame-Options, CSP, Referrer-Policy) to signing routes via Hono middleware - Add `meta` export to recipient layout with noindex robots tag and generic title, stripping OG/Twitter meta from signing pages Embed routes are unaffected — the middleware regex only matches paths starting with `/sign/` or `/d/`, and the meta export is scoped to the `_recipient+` layout hierarchy. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/documenso#2327
No description provided.