← sources

Claude Code was putting my email in requests, so I wrote a small hook that swaps it for placeholder data

source: reddit (reddit:ClaudeCode)published 2026-10-30 13:40ingested 2026-10-31 02:39

retained text

A few people here have posted about Claude Code leaking their email into HTTP requests, commit text or files it writes. It happened to me too: the session knows your address, and sooner or later it ends up in a From: header or a form.

I made a small  hook that fixes it. It doesn't block the call; it rewrites it. Any string in a tool call that contains a term from your list gets swapped before the tool runs.   
  
An email becomes [example@example.com](mailto:example@example.com), a name becomes user, or you set your own stand-in. The tool then runs with the fake value, so the request or file goes out with placeholder data and nothing on your side breaks.  


It also refuses any command that sets its own User-Agent or From header (curl -A, -H 'From: …', a headers object in code), so requests go out with no identifier at all.

  
you can install it from:  [https://github.com/0xS4N4TG/hush](https://github.com/0xS4N4TG/hush)

document fetched 2026-10-31 00:43 · canonical https://reddit.com/r/ClaudeCode/comments/1xjfosi/claude_code_was_putting_my_email_in_requests_so_i