in reply to APACHE: Password protect folders
Has nothing to do with perl (per se). The apache documentation covers how to do authentication rather well.