Skip to content

docs: Update reverse proxy guidance for Cloudflare and risky domain patterns#15413

Merged
rafaeelaudibert merged 3 commits intomasterfrom
docs-writer-ai-update-2026-03-02T17-30-49-952Z-h84ul8
Mar 2, 2026
Merged

docs: Update reverse proxy guidance for Cloudflare and risky domain patterns#15413
rafaeelaudibert merged 3 commits intomasterfrom
docs-writer-ai-update-2026-03-02T17-30-49-952Z-h84ul8

Conversation

@inkeep
Copy link
Contributor

@inkeep inkeep bot commented Mar 2, 2026

Summary

Updates reverse proxy documentation to reflect changes from PostHog/posthog#49431, which added Cloudflare proxy warnings and improved domain guidance.

Changes

1. Added "ph" to risky domain patterns

The RISKY_DOMAIN_PATTERNS regex in the app now includes \bph\. as a pattern that ad blockers flag. Updated docs to:

  • Add ph to the list of terms to avoid in subdomain names
  • Remove ph from safe pattern recommendations (replaced with t or ingest)
  • Clarify that the proxy won't achieve its intended effect if ad blockers block the domain

Files updated:

  • contents/docs/advanced/proxy/_snippets/managed-reverse-proxy.mdx
  • contents/docs/advanced/proxy/cloudflare.mdx
  • contents/docs/advanced/proxy/proxy-reference.mdx

2. Improved Cloudflare DNS proxy warning

Added a prominent warning about disabling DNS provider proxy features (like Cloudflare's "orange cloud") when configuring CNAME records for PostHog's managed reverse proxy. Enabling the proxy at the DNS provider may interfere with PostHog's managed reverse proxy functionality and SSL certificate provisioning.

File updated:

  • contents/docs/advanced/proxy/_snippets/managed-reverse-proxy.mdx - Upgraded note to CalloutBox with type="caution"

This PR was created by the Inkeep Content Writer agent, which is maintained by the Docs and Wizard team. Please reach out on Slack for help if needed.

inkeep bot added 3 commits March 2, 2026 17:31
…ph domain guidance

- Add "ph" to the list of risky subdomain patterns that ad blockers target
- Clarify that the proxy won't achieve its intended effect if ad blockers block the domain
- Replace simple blockquote note with a prominent CalloutBox warning about disabling DNS provider proxy features (e.g., Cloudflare's orange cloud)

Reflects changes from PostHog/posthog#49431
…49431

PR #49431 added `\bph\.` to the RISKY_DOMAIN_PATTERNS regex in
proxyLogic.ts, meaning ad blockers now flag `ph` subdomains. Updated
both Cloudflare Workers (Option 1) and DNS/Page Rules (Option 2)
guidance to list `ph` as a term to avoid and suggest `t` instead.
…ngest

PR #49431 added `\bph\.` to the RISKY_DOMAIN_PATTERNS regex, meaning
subdomains starting with "ph" are now flagged by ad blockers. Updated:
- Checklist: moved `/ph` to the "avoid" list, recommend `/e` or `/ingest`
- CORS examples: replaced `/ph` with `/ingest` in both US and EU snippets
- Fixed stray `**` formatting in checklist item
@inkeep inkeep bot requested a review from rafaeelaudibert March 2, 2026 17:33
@github-actions
Copy link
Contributor

github-actions bot commented Mar 2, 2026

Deploy preview

Status Details Updated (UTC)
🟢 Ready View preview Mar 02, 2026 06:58PM

@github-actions
Copy link
Contributor

github-actions bot commented Mar 2, 2026

Vale prose linter → found 0 errors, 17 warnings, 0 suggestions in your markdown

Full report → Copy the linter results into an LLM to batch-fix issues.

Linter being weird? Update the rules!

contents/docs/advanced/proxy/cloudflare.mdx — 0 errors, 9 warnings, 0 suggestions
Line Severity Message Rule
13:58 warning Use 'Cloudflare' instead of 'cloudflare'. Vale.Terms
25:38 warning 'proxying' is a possible misspelling. PostHogBase.Spelling
212:4 warning 'Option 2: DNS and Page Rules' heading should be in sentence case, and product names should be capitalized. PostHogBase.SentenceCase
226:21 warning 'Proxied' is a possible misspelling. PostHogBase.Spelling
309:124 warning 'IPs' is a possible misspelling. PostHogBase.Spelling
315:5 warning 'CORS errors in browser console' heading should be in sentence case, and product names should be capitalized. PostHogBase.SentenceCase
363:5 warning 'Unexpected token 'export' error in Worker' heading should be in sentence case, and product names should be capitalized. PostHogBase.SentenceCase
386:5 warning 'Page Rules not taking effect' heading should be in sentence case, and product names should be capitalized. PostHogBase.SentenceCase
392:55 warning 'proxied' is a possible misspelling. PostHogBase.Spelling
contents/docs/advanced/proxy/proxy-reference.mdx — 0 errors, 8 warnings, 0 suggestions
Line Severity Message Rule
25:48 warning 'IPs' is a possible misspelling. PostHogBase.Spelling
58:58 warning 'proxying' is a possible misspelling. PostHogBase.Spelling
62:5 warning '405 Method Not Allowed' heading should be in sentence case, and product names should be capitalized. PostHogBase.SentenceCase
66:5 warning '502 Bad Gateway' heading should be in sentence case, and product names should be capitalized. PostHogBase.SentenceCase
76:5 warning 'CORS errors' heading should be in sentence case, and product names should be capitalized. PostHogBase.SentenceCase
106:36 warning 'IPs' is a possible misspelling. PostHogBase.Spelling
111:15 warning Use 'NGINX' instead of 'nginx'. Vale.Terms
123:45 warning Capitalize 'Logs' for PostHog's product. Use 'logs' for the general industry concept. PostHogBase.ProductNames

@rafaeelaudibert rafaeelaudibert merged commit 85c3786 into master Mar 2, 2026
18 of 19 checks passed
Copy link
Member

Merge activity

@rafaeelaudibert rafaeelaudibert deleted the docs-writer-ai-update-2026-03-02T17-30-49-952Z-h84ul8 branch March 2, 2026 18:59
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.

1 participant