Proxito: noindex projects from organizations on trial - #13248
Open
ericholscher wants to merge 2 commits into
Open
Proxito: noindex projects from organizations on trial#13248ericholscher wants to merge 2 commits into
ericholscher wants to merge 2 commits into
Conversation
Add the X-Robots-Tag: noindex header to documentation served for projects owned by organizations still on the trial plan, so search engines don't index them (to fight spam). Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01FeX9CebgzZy9eSesobePfm
Member
|
I haven't reviewed it yet, but it's a great idea 👍 |
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01FeX9CebgzZy9eSesobePfm
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Spammers sign up for a Business trial and get their content hosted — and then indexed by Google, which is what makes the spam valuable. This removes that incentive by serving
X-Robots-Tag: noindexon all documentation from projects owned by organizations still on the trial plan, extending the existing middleware hook that already does this for pull request previews.An organization counts as "on trial" when its subscription is on the default trial plan price and still in
trialingstatus, exposed asOrganization.objects.on_trial(). An organization trialing a paid plan (e.g. upgraded through the billing portal while inside the trial window) is deliberately treated as not-on-trial, since they've shown payment intent. Once a customer subscribes to a paid plan, the header disappears as cached responses roll over.Things a reviewer should double-check:
noindexheader instead of a disallow-all robots.txt (as delisted/spam projects get) because crawlers must be able to fetch a page to seenoindex— blocking crawling can leave spam URLs indexed as bare links. Happy to add the robots.txt treatment as well if you'd rather have both.EXISTSquery per uncached response on .com (guarded byRTD_ALLOW_ORGANIZATIONS, so Community is unaffected). If the commercial repo has proxito query-count tests that run with organizations enabled, they'll need a +1.🤖 Generated with Claude Code
https://claude.ai/code/session_01FeX9CebgzZy9eSesobePfm