Claude code decided to just put my name and email in the User-Agent when scraping docs from the SEC. No clever prompting required.
It’s not a terrible idea really, but I wish it would’ve asked me first.
It’s not a terrible idea really, but I wish it would’ve asked me first.
Claude just followed the instructions. Which is maybe even more risky?
...which indeed requests that bots supply `User-Agent: Sample Company Name AdminContact@<sample company domain>.com`.
So in this case, the site just asked nicely and Claude Code complied. Note that this wouldn't have worked for Claude Chat, which the author was testing, because the `web_fetch` tool cannot set the User-Agent or other headers.
Bash(curl -A "<my name> <my email>" "sec.gov...")Some services like Wikimedia will let you browse/download with rate limits IF your user agent is descriptive enough and not misleading.