| Did you know ... | Search Documentation: |
| public_url.pl -- Check URLs fetched on behalf of users |
The server fetches URLs provided by users and pack authors: pack
archives and git repositories and OpenID discovery documents. This
module verifies such URLs are http(s) URLs for hosts that only resolve
to public addresses, such that they cannot be used to access services
on the server itself or the internal network (Server Side Request
Forgery).
Note that this does not protect against redirects to internal addresses or DNS rebinding.
public_url(+URL) is semidet
must_be_public_url(+URL) is det