Open juchiast opened 3 months ago
For our project, we need to allow access to only global IP addresses (https://doc.rust-lang.org/stable/std/net/enum.IpAddr.html#method.is_global). I suggest adding new CLI arguments:
--allow-global-ip
--deny-global-ip
--allow-local-ip
--deny-local-ip
I also badly need this. It's basic SSRF protection (OWASP ref) that is lacking from Deno. I wrote a similar issue here:
https://github.com/denoland/deno/issues/21227
For our project, we need to allow access to only global IP addresses (https://doc.rust-lang.org/stable/std/net/enum.IpAddr.html#method.is_global). I suggest adding new CLI arguments:
--allow-global-ip
--deny-global-ip
--allow-local-ip
--deny-local-ip