Did you know ... Search Documentation:
public_url.pl -- Check URLs fetched on behalf of users
PublicShow source

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.

Source public_url(+URL) is semidet
True if URL is an http or https URL whose host resolves only to public addresses.
Source must_be_public_url(+URL) is det
Errors
- domain_error(public_url, URL)
Source public_address(+Address) is semidet[private]
True if Address is not a loopback, private, link-local, multicast or otherwise reserved address.