paddychin has asked for the wisdom of the Perl Monks concerning the following question:
Perl doesn't enter into it (or if it does it's only very tangentially); this is an http server configuration issue. Look at your server's documentation (e.g. mod_auth for Apache).
The cake is a lie. The cake is a lie. The cake is a lie.