From: Bill Atkins Date: 2005-01-09T05:37:30+09:00 Subject: Re: Webrick and Basic Auth Well, that won't do the OP any good if he isn't using Rails. There's a sample of Webrick authentication at http://thekode.net/misc/httpd-auth.txt Bill On Sat, 8 Jan 2005 23:36:25 +0900, Peter Retief wrote: > Sarah Tanembaum wrote: > > jim@freeze.org wrote: > > > >> Hi > >> > >> I have a directory of files that I want to share over the net > >> with Webrick. Basically, I have something simple now where > >> Webrick mounts the directory and serves up the files. Neat > >> and simple. > >> > >> However, I have another set of files that I want to share, > >> but I want to have only authorized people access them. > >> > >> Is there a simple way (say by adding htaccess to a directory(s)) > >> to add authentication to a webrick mounted directory? > >> > >> Sorry if this is a dumb question. > >> > >> Thanks > > > > Is Webrick secure? What's precautions and gotchas should we put our > > attention too? Also, how the performance? > > Hi > Use controller (before_filter) with rubyonrails and the login generator > Peter > > -- $stdout.sync = true "Just another Ruby hacker.".each_byte do |b| ('a'..'z').step do|c|print c+"\b";sleep 0.007 end;print b.chr end; print "\n"