https://blog.includesecurity.com/2023/03/mitigating-ssrf-in-2023/ https://github.com/stripe/smokescreen https://docs.python.org/3/library/ipaddress.html has methods like is_loopback is_private, etc. as used in requests-hardened https://github.com/saleor/requests-hardened/blob/389cd299607e8441de0f855e3589acd2b9c80d4a/requests_hardened/ip_filter.py#L39-L50 https://github.com/saleor/requests-hardened (unpopular) https://pypi.org/project/SafeURL-Python/ (archived)
https://blog.includesecurity.com/2023/03/mitigating-ssrf-in-2023/
https://github.com/stripe/smokescreen
https://docs.python.org/3/library/ipaddress.html has methods like is_loopback is_private, etc. as used in requests-hardened https://github.com/saleor/requests-hardened/blob/389cd299607e8441de0f855e3589acd2b9c80d4a/requests_hardened/ip_filter.py#L39-L50
https://github.com/saleor/requests-hardened (unpopular)
https://pypi.org/project/SafeURL-Python/ (archived)