6 ms·
Fine-grained HTTP filtering for Claude Code
- simonw 1y agoThis describes httpjail, a new Rust sandbox proxy tool: https://github.com/coder/httpjail https://github.com/coder/httpjail It works for any process, not just Claude Code. I got it working with Codex CLI like this: httpjail --js "r.host === 'chatgpt.com'" -- codex After installing it using Cargo (and Homebrew): brew upgrade rust cargo install httpjail I wrote more notes about it here: https://simonwillison.net/2025/Sep/19/httpjail/ https://simonwillison.net/2025/Sep/19/httpjail/
- moderation 1y agoPreviously [0] 0. https://news.ycombinator.com/item?id=45307459 https://news.ycombinator.com/item?id=45307459
- mandrade2 1y ago> Allow only GET requests i.e. make the internet read-only If only developers never made use of GET to modify resources... https://www.reddit.com/r/webdev/comments/6999x7/comment/dh4vzsy/?utm_source=share&utm_medium=web3x&utm_name=web3xcss&utm_term=1&utm_content=share_button https://www.reddit.com/r/webdev/comments/6999x7/comment/dh4v...
- andy99 1y agoAm I misunderstanding this one? GET still sends information to another server, what is the "read only" aspect?
- ammario 1y agoI meant read-only there in the sense of mutability, not exfiltration. Of course, some websites may permit mutations through GET so it’s probably only sensible to use alongside known hosts.
- cmpaul 1y ago``` GET https://mysite.com/?query=all+the+secrets https://mysite.com/?query=all+the+secrets ```
- kookybakker 1y agoIn theory a get request sent to a server should not have any side effects and only retrieve some data. In practice implemention is completely up to the developer and their rule is about as useful as putting up an exit sign to prevent people from entering your building.
- nnikiforakis 1y agoAs others mentioned, GET requests are supposed to be idempotent, i.e., you can send the same request 100 times and get the same response (with no server side-effects) 100 times. GET requests are also easier to be abused in Cross Site Request Forgery (CSRF) attacks. Modern countermeasures in browsers (like SameSite cookies) will protect cross-origin POST and other state-changing methods, but will largely allow GET requests to go through while carrying session cookies.
- userbinator 1y agoIronically, your URL demonstrates this nicely, having a bunch of extra superfluous parameters that only serve to update some tracking database. Here is the "cleaned" URL: https://www.reddit.com/r/webdev/comments/6999x7/comment/dh4vzsy/ https://www.reddit.com/r/webdev/comments/6999x7/comment/dh4v... I thought it'd be this old but memorable article: https://thedailywtf.com/articles/The_Spider_of_Doom https://thedailywtf.com/articles/The_Spider_of_Doom