Skip to content

feat: Add forbidden usernames for AI agent and LLM-related files#621

Merged
B4nan merged 2 commits intomasterfrom
claude/add-forbidden-username-QRikW
Apr 23, 2026
Merged

feat: Add forbidden usernames for AI agent and LLM-related files#621
B4nan merged 2 commits intomasterfrom
claude/add-forbidden-username-QRikW

Conversation

@jancurn
Copy link
Copy Markdown
Member

@jancurn jancurn commented Apr 23, 2026

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-known directory which is commonly used for web standards and security configurations.

Key Changes

  • Added llms-full.txt to forbidden usernames (LLM configuration file)
  • Added AGENTS.md to forbidden usernames (case-insensitive, for AI agent documentation)
  • Added .well-known to forbidden usernames (standard directory for web configurations like ACME challenges, security policies, etc.)
  • Updated corresponding test cases to verify these new forbidden usernames are properly rejected

Implementation Details

The changes follow the existing pattern in the FORBIDDEN_USERNAMES_REGEXPS array, using regex patterns to match filenames case-insensitively where appropriate. The .well-known entry uses the existing hidden file pattern (\..*) which already matches all dot-prefixed files and directories.

https://claude.ai/code/session_01V6hCX7q11X1kWN7CRjjXzQ

claude added 2 commits April 23, 2026 12:42
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.
@jancurn jancurn changed the title Add forbidden usernames for AI agent and LLM-related files feat: Add forbidden usernames for AI agent and LLM-related files Apr 23, 2026
@jancurn jancurn requested a review from B4nan April 23, 2026 13:07
@B4nan B4nan merged commit 7354dec into master Apr 23, 2026
9 checks passed
@B4nan B4nan deleted the claude/add-forbidden-username-QRikW branch April 23, 2026 13:48
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>
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.

4 participants