There are many use cases where an EPM administrator would want to prevent a script or script type from accessing the internet, while still being allowed to run normally in the user environment.
One such use case example is malware trying to reach the internet.
Here are steps to block these scripts from accessing the internet, and also how to allow specific scripts through the block.
Steps
You can create a 'Run Normally' Advanced Policy for Application Type 'Run Script'.
In the Script section you can add a file name, for example, such as *.js to cover all files with the extension .js, or the specific script name you wish to keep from accessing the internet.
In the Access section you can check the box next to 'Control access' and that will open up a section of more choices.
In the Internet/Intranet section you use the drop down box under Access and select 'Restrict' for the Internet.
Please be aware that if you made the policy wildcard this will affect all .js scripts (or whatever script type you chose) in the set and you definitely should test this before you implement it in your production environment.
For scripts that you need to override this policy and access the internet, you can write a policy for that specific script giving it the permissions you need, and raise the policy priority over that of the script preventing access to the internet.