نیازی به اسکریپت نیست. anonymous authentication رو غیر فعال کنید و basic authentication رو فعال. بعدش فقط کسانی که توی سرور یوزر داشته باشند می تونن دانلود کنن

https://www.iis.net/configreference/...authentication