Apacheなら.htaccessに
Order allow,deny
Deny from all
を書く、IISは知らん。