Block download .ps1 files

Hi,
has anyone managed to block the download of .ps1 files using “pattern match” ?
With .exe I have succeeded using the string “%0x4d5a%*” but I can't find anything about how to find the relevant string for .ps1 files.

Thanks

Comments

  • Does URL Paths help here - Deny *.ps1

  • Hi Bruce, I see that "URL Path" not always works. This is why I would like to try with "Pattern match".

  • Isn't a .ps1 file just a text file containing a Power Shell script?

  • It's a .ps1 file containing power shell commands.

Sign In to comment.