Perl-Sensitive Sunglasses | |
PerlMonks |
Re: How do I password-protect my HTTP::Proxy daemon?by superfrink (Curate) |
on Nov 30, 2004 at 19:59 UTC ( [id://411258]=note: print w/replies, xml ) | Need Help?? |
The following includes hints scattered through the thread login & password. The HTTP::Proxy documentation doesn't explicitly mention "login" or "password", but it does talk about "authentication". HTTP::Proxy does not have options to enable a password protection system; instead, you have to add a "filter" for authentication. HTTP::Proxy::HeaderFilter::simple can create such a filter. The HTTP-Proxy distribution includes an example program, proxy-auth.pl, which demonstrates how to add a BasicAuth style password to a proxy. Below is a copy of this program with some customizations to (1) specify the port, (2) allow any IP address to use the proxy, and (3) disable some headers added by the proxy.
In Section
Seekers of Perl Wisdom
|
|