Re:Show HN: Instantly listen to any URL
by soheil on Friday August 13, 2021 @09:28PM
(#28176931)
Added a check against localhost thanks for pointing that out.
[ Parent
| on HN ]
You will not win against SSRF using a blocklist of names. You need a comprehensive solution that is designed for this and will check the end address after redirections, DNS resolutions, ... have been applied in whatever library you use for HTTP. An example is advocate for Python https://github.com/JordanMilne/Advocate
Re:Show HN: Instantly listen to any URL
by karmanyaahm on Saturday August 14, 2021 @05:53PM
(#28184236)
http://[::1] still works btw
Just fixed. Thanks.
Can someone educate me on why these 2 links resolve to localhost?
I think the first is the 32 bit int version of 127.0.0.1, and 0177 is the octal representation of 127.
Along those lines, you can also use hex https://0x7f.0.0.0x01:443/