Server-Side Request Forgery (SSRF) occurs when an application is tricked into making a network request to a destination chosen or influenced by an attacker. It can affect URL-import, image-fetching and webhook features. If validation is weak, the server may be induced to reach internal services or cloud metadata endpoints that are not publicly exposed. OWASP’s defensive guidance recommends avoiding complete user-supplied URLs where possible. Prefer a strict allowlist of approved destinations, parse and validate addresses with robust libraries, check resolved IPv4 and IPv6 destinations, prevent redirects from bypassing validation, and restrict outbound network routes as a second layer. DNS rebinding and parser differences mean a simple string or regular-expression check is not enough. Test URL-fetching features only in systems where you have permission, and review the network path as well as the application code. SSRF prevention is strongest when application validation and network-level controls work together. Source: OWASP Foundation