Safe-fetch is a Python library that prevents Server-Side Request Forgery (SSRF) attacks by validating hostnames and checking every redirect before connecting to user-supplied URLs. It blocks access to private IP ranges, limits response size, and requires only the standard library with no dependencies.