denoland / deno

A modern runtime for JavaScript and TypeScript.
https://deno.com
MIT License
98.01k stars 5.39k forks source link

[CLI] Network access can support representing IP segments #26995

Open SuperManito opened 14 hours ago

SuperManito commented 14 hours ago

For example, I want to prohibit scripts from accessing the local area network

deno run --allow-net --deny-net=127.0.0.1,10.0.0.0/8,172.16.0.0/12,192.168.0.0/16 script.ts