{"categories":[{"label":"Security","url":"https://skillfed.io/packages/category/security/2"}],"enrichment":{"capability":"Wraps the requests library to enforce security defaults and block SSRF attacks by filtering private and loopback IP addresses.","skillfed_tags":["ssrf-protection","http-security","requests-wrapper"],"use_cases":["Protect web applications that make HTTP requests based on user input from SSRF attacks by filtering private IP ranges.","Enforce organization-wide HTTP client security policies like mandatory request timeouts and disabled redirects across multiple services.","Build secure API clients that reject redirects and enforce User-Agent headers to prevent header injection or redirect-based attacks.","Combine with proxy configurations for defense-in-depth, filtering tunneled requests while trusting the proxy itself.","Harden microservices that call internal APIs to prevent attackers from pivoting through HTTP requests to localhost or private networks."],"what_it_does":"requests-hardened is a security-focused wrapper around the requests library that applies hardened defaults and adds SSRF protection. It lets you configure global security policies like enforcing request timeouts, disabling redirects, and filtering outbound requests to private IP ranges\u2014preventing server-side request forgery attacks where untrusted user input could be used to probe internal infrastructure.\n\nThe library works by wrapping requests.Session and intercepting HTTP calls through a Manager and Config object. You set security policies once (timeout, redirect behavior, SSRF filtering rules) and then use the manager to send requests or get sessions, ensuring those policies apply consistently. It supports proxies including SOCKS4/SOCKS5, and the SSRF filter can be tuned to allow or block loopback addresses depending on your threat model.","worth_installing":"Yes, if you make HTTP requests based on untrusted user input or need to enforce consistent security defaults across your application. The single dependency on requests, active maintenance, permissive license, and zero known vulnerabilities make it a low-risk addition. Install it if SSRF protection or global timeout/redirect policies matter for your threat model; skip it if your requests are fully trusted or you handle these concerns elsewhere."},"id":"requests-hardened","links":{"html":"https://skillfed.io/packages/requests-hardened","md":"https://skillfed.io/packages/requests-hardened.md","pypi":"https://pypi.org/project/requests-hardened/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2026-07-14","license_spdx":"BSD-3-Clause","license_treatment":"permissive","name":"requests-hardened","python_support":"supports_current","summary":"A library that overrides the default behaviors of the requests library, and adds new security features."},"popularity":{"monthly_downloads":190369,"position":9913,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"1.3.0"}
