feat: Add forbidden usernames for AI agent and LLM-related files#621
Merged
feat: Add forbidden usernames for AI agent and LLM-related files#621
Conversation
Prevent these special filenames from being registered as usernames, since they are served at apify.com/<username> and would conflict with AI agent discovery files.
The existing hidden-files pattern already blocks .well-known; add an explicit assertion so the behavior is locked in.
B4nan
approved these changes
Apr 23, 2026
jancurn
pushed a commit
that referenced
this pull request
Apr 24, 2026
## Summary This PR adds `CLAUDE.md` to the list of forbidden usernames to prevent users from registering usernames that would conflict with Claude Code configuration files on web URLs. Similar to #621 which added `AGENTS.md` and `llms-full.txt`. ## Key Changes - Added `CLAUDE.md` to forbidden usernames (case-insensitive, for Claude Code configuration files) - Added corresponding test cases to verify `CLAUDE.md` and `claude.MD` are properly rejected ## Slack Thread https://apify.slack.com/archives/C0ANGNWT85T/p1777020731104349?thread_ts=1776943682.809139&cid=C0ANGNWT85T https://claude.ai/code/session_01GPyCtsQ8YkKtuhAeCDLaXB --- _Generated by [Claude Code](https://claude.ai/code/session_01GPyCtsQ8YkKtuhAeCDLaXB)_ Co-authored-by: Claude <noreply@anthropic.com>
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.
Summary
This PR expands the list of forbidden usernames to include additional special files related to AI agents and LLM configurations, as well as the
.well-knowndirectory which is commonly used for web standards and security configurations.Key Changes
llms-full.txtto forbidden usernames (LLM configuration file)AGENTS.mdto forbidden usernames (case-insensitive, for AI agent documentation).well-knownto forbidden usernames (standard directory for web configurations like ACME challenges, security policies, etc.)Implementation Details
The changes follow the existing pattern in the
FORBIDDEN_USERNAMES_REGEXPSarray, using regex patterns to match filenames case-insensitively where appropriate. The.well-knownentry uses the existing hidden file pattern(\..*)which already matches all dot-prefixed files and directories.https://claude.ai/code/session_01V6hCX7q11X1kWN7CRjjXzQ