j0k3r/httplug-ssrf-plugin
HTTPlug plugin to mitigate SSRF by validating URL parts against configurable allow/deny lists. Resolves hostnames to IPs, blocks private networks by default, and restricts schemes to HTTP/HTTPS. Throws InvalidURLException on invalid targets.
localhost, private IPs, or internal domains).Adopt if:
httplug/httplug, php-http/client) for HTTP requests.127.0.0.1, 169.254.169.254, or internal DNS names).Look elsewhere if:
For Executives: "This plugin adds a lightweight, automated shield against Server-Side Request Forgery (SSRF) attacks—a top OWASP risk—for our PHP-based HTTP clients. By blocking malicious requests to internal systems (e.g., databases, admin panels) before they’re processed, we reduce exposure to data breaches or service disruptions. It’s a low-cost, high-impact security layer that aligns with compliance needs (PCI, GDPR) and integrates seamlessly with our existing HTTPlug infrastructure. The MIT license and minimal overhead make it a no-brainer for hardening our API gateways and scraping services."
For Engineering: *"The j0k3r/httplug-ssrf-plugin provides a drop-in SSRF filter for HTTPlug clients, supporting:
file://, gopher://).How can I help you explore Laravel packages today?