Documentation
¶
Overview ¶
Package netguard stops requests to private and internal networks.
acurl serve and acurl mcp fetch URLs chosen by someone else (a browser tab, an AI assistant). Without a guard they could be pointed at 127.0.0.1, the cloud metadata service or the office network (SSRF). The check runs on the resolved IP at connect time, so DNS names that resolve to private addresses, including after a rebinding, are refused.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrBlocked = errors.New("connection to a private or internal address blocked")
ErrBlocked is returned when a connection to a non-public address is refused.
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.