Overview - Network permissions (--allow-net)
What is it?
Network permissions in Deno control which network addresses a program can access. The --allow-net flag lets you specify which websites or IP addresses your Deno script can connect to. Without this permission, your program cannot make any network requests. This helps keep your computer safe by limiting what the code can reach on the internet or local network.
Why it matters
Network permissions exist to protect your computer and data from harmful or unexpected network activity. Without these controls, any Deno script could connect anywhere on the internet, possibly leaking private information or attacking other systems. This permission system makes running code safer, especially when using code from others or the internet.
Where it fits
Before learning about network permissions, you should understand basic Deno commands and how Deno runs scripts. After this, you can learn about other Deno permissions like file system access or environment variables. Later, you might explore how permissions improve security in larger applications or when deploying Deno programs.
