⌨️WebFetch Permission Rule
Also known as WebFetch(domain:example.com), domain rule
A rule that says which web sites Claude may fetch.
Think of it like
It is like a list of the shops a child may walk to alone.
Example
Jack lets Claude read the Python docs without asking. Every other site still asks first.
Why it matters
A fetched page can carry hidden orders. Choosing the sites keeps that risk small.
Definition
Example code
json
{
"permissions": {
"allow": ["WebFetch(domain:docs.python.org)", "WebFetch(domain:*.github.com)"]
}
}Common mistake
Key takeaways
- 1domain: and a host. One host each.
- 2*. for sub-sites. Not the host itself.
- 3curl is separate. Deny it too.