<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"
    xmlns:dc="http://purl.org/dc/elements/1.1/"
     xmlns:admin="http://webns.net/mvcb/"
     xmlns:content="http://purl.org/rss/1.0/modules/content/"
     xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
	<channel> 

	<title>Comments on: Password-Protection</title>
	<link>http://ask.metafilter.com/14439/PasswordProtection/</link>
	<description>Comments on Ask MetaFilter post Password-Protection</description>
	<pubDate>Wed, 26 Jan 2005 07:40:24 -0800</pubDate>
	<lastBuildDate>Wed, 26 Jan 2005 07:40:24 -0800</lastBuildDate>
	<language>en-us</language>
	<docs>http://blogs.law.harvard.edu/tech/rss</docs>
	<ttl>60</ttl>

	<item>
		<title>Question: Password-Protection</title>
		<link>http://ask.metafilter.com/14439/PasswordProtection</link>	
		<description>Is there a script (perl or php, no MySQL because I don&apos;t understand it and don&apos;t want to learn it) that password-protects a webpage so that it can be viewed only by someone who logs in with a username and a password, and also logs that user, so that you can have a record (very important) of who&apos;s viewed the page? If so, where can I get me one?</description>
		<guid isPermaLink="false">post:ask.metafilter.com,2005:site.14439</guid>
		<pubDate>Wed, 26 Jan 2005 07:36:16 -0800</pubDate>
		<dc:creator>iconomy</dc:creator>
		
			<category>Script</category>
		
			<category>Perl</category>
		
			<category>php</category>
		
			<category>mysql</category>
		
			<category>password</category>
		
			<category>webpage</category>
		
			<category>internet</category>
		
			<category>website</category>
		
	</item> <item>
		<title>By: Plutor</title>
		<link>http://ask.metafilter.com/14439/PasswordProtection#248543</link>	
		<description>Apache (the web server) can do it, no scripting or database needed, by utilizing the Auth* directives in a &lt;a href=&quot;http://httpd.apache.org/docs/howto/htaccess.html&quot;&gt;.htaccess&lt;/a&gt; file.  Of course, your administrator will need to have Apache configured to allow you to do that, but it&apos;s a rather common setup.  Also, read Apache&apos;s &lt;a href=&quot;http://httpd.apache.org/docs/howto/auth.html&quot;&gt;authentication tutorial&lt;/a&gt;.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2005:site.14439-248543</guid>
		<pubDate>Wed, 26 Jan 2005 07:40:24 -0800</pubDate>
		<dc:creator>Plutor</dc:creator>
	</item><item>
		<title>By: agropyron</title>
		<link>http://ask.metafilter.com/14439/PasswordProtection#248551</link>	
		<description>Seriously, .htaccess is a very simple thing to set up. Though it&apos;s been long enough that I can&apos;t type out the steps from memory. It was much easier than scripting anything.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2005:site.14439-248551</guid>
		<pubDate>Wed, 26 Jan 2005 07:47:34 -0800</pubDate>
		<dc:creator>agropyron</dc:creator>
	</item><item>
		<title>By: AlexReynolds</title>
		<link>http://ask.metafilter.com/14439/PasswordProtection#248563</link>	
		<description>If you care about security, make sure you&apos;re running .htaccess&apos;s usual Basic authentication within a SSL-protected server profile. This kind of authentication traffic is sent along the web traffic in what is equivalent to cleartext. Here are &lt;a href=&quot;http://developer.apple.com/internet/serverside/modssl.html&quot;&gt;OS X&lt;/a&gt;-specific instructions, but the commands described in this article apply equally to any generic LAMP setup.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2005:site.14439-248563</guid>
		<pubDate>Wed, 26 Jan 2005 08:00:04 -0800</pubDate>
		<dc:creator>AlexReynolds</dc:creator>
	</item><item>
		<title>By: cmonkey</title>
		<link>http://ask.metafilter.com/14439/PasswordProtection#248565</link>	
		<description>Apache access logs include the authenticated username, too, so .htaccess and a log parser is all you&apos;d need.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2005:site.14439-248565</guid>
		<pubDate>Wed, 26 Jan 2005 08:02:02 -0800</pubDate>
		<dc:creator>cmonkey</dc:creator>
	</item><item>
		<title>By: mkultra</title>
		<link>http://ask.metafilter.com/14439/PasswordProtection#248576</link>	
		<description>To add to the pile-on: If you were to do this in something like PHP, then your &lt;i&gt;entire site&lt;/i&gt; needs to be in PHP. If you have complex security roles, then something like that might be called for, but for simple user:password security, .htaccess is simple and can sit on top of anything else.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2005:site.14439-248576</guid>
		<pubDate>Wed, 26 Jan 2005 08:14:13 -0800</pubDate>
		<dc:creator>mkultra</dc:creator>
	</item><item>
		<title>By: orange clock</title>
		<link>http://ask.metafilter.com/14439/PasswordProtection#248579</link>	
		<description>man htpasswd, baby</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2005:site.14439-248579</guid>
		<pubDate>Wed, 26 Jan 2005 08:19:14 -0800</pubDate>
		<dc:creator>orange clock</dc:creator>
	</item><item>
		<title>By: iconomy</title>
		<link>http://ask.metafilter.com/14439/PasswordProtection#248598</link>	
		<description>Now this is the kind of pile-on that I &lt;em&gt;like&lt;/em&gt;! Thanks, guys. You know that I have no idea what any of you are talking about, right? I have no idea what directives are, or what a LAMP setup is. I&apos;ll look into everyone&apos;s answers and give it a go, though -  thanks so much.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2005:site.14439-248598</guid>
		<pubDate>Wed, 26 Jan 2005 08:35:28 -0800</pubDate>
		<dc:creator>iconomy</dc:creator>
	</item><item>
		<title>By: purephase</title>
		<link>http://ask.metafilter.com/14439/PasswordProtection#248600</link>	
		<description>&lt;a href=&quot;http://en.wikipedia.org/wiki/LAMP&quot;  _blank&gt;LAMP&lt;/a&gt;.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2005:site.14439-248600</guid>
		<pubDate>Wed, 26 Jan 2005 08:37:34 -0800</pubDate>
		<dc:creator>purephase</dc:creator>
	</item><item>
		<title>By: revgeorge</title>
		<link>http://ask.metafilter.com/14439/PasswordProtection#248605</link>	
		<description>There is a really good tool online for generating these.  Unfortunately I can&apos;t find it, but I did find &lt;a href=&quot;http://www.webmaster-toolkit.com/htaccess-generator.shtml&quot;&gt;this one&lt;/a&gt;.  You can add more users by running it again and adding  the .htpasswd it creates to the one you already had, each user on their own line.&lt;br&gt;
&lt;br&gt;
Also, take a look at &lt;a href=&quot;http://www.bitesizeinc.net/demo.htaccesser.html&quot;&gt;this .htaccess generator&lt;/a&gt;.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2005:site.14439-248605</guid>
		<pubDate>Wed, 26 Jan 2005 08:58:24 -0800</pubDate>
		<dc:creator>revgeorge</dc:creator>
	</item><item>
		<title>By: danOstuporStar</title>
		<link>http://ask.metafilter.com/14439/PasswordProtection#248644</link>	
		<description>Isn&apos;t &quot;a record of who&apos;s viewed the page&quot; kind of a primary requirement that&apos;s being ignored in this pile-on?  Saying &quot;a log parser is all you need&quot; seems a little obscure.&lt;br&gt;
&lt;br&gt;
If it is truly a single page, that you need to protect/record, look at &lt;a href=&apos;http://us2.php.net/manual/en/function.fwrite.php&apos;&gt;opening a file&lt;/a&gt; and recording the &lt;a href=&apos;http://us3.php.net/features.http-auth&apos;&gt;$_SERVER[&apos;PHP_AUTH_USER&apos;]&lt;/a&gt;  value and a &lt;a href=&apos;http://us3.php.net/manual/en/function.date.php&apos;&gt;timestamp&lt;/a&gt; during each visit.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2005:site.14439-248644</guid>
		<pubDate>Wed, 26 Jan 2005 10:09:34 -0800</pubDate>
		<dc:creator>danOstuporStar</dc:creator>
	</item><item>
		<title>By: Plutor</title>
		<link>http://ask.metafilter.com/14439/PasswordProtection#248662</link>	
		<description>&lt;i&gt;Isn&apos;t &quot;a record of who&apos;s viewed the page&quot; kind of a primary requirement that&apos;s being ignored in this pile-on? Saying &quot;a log parser is all you need&quot; seems a little obscure.&lt;/i&gt;&lt;br&gt;
&lt;br&gt;
A log parser isn&apos;t necessary.  The default Apache access_log format includes both %t (current time) and %u (authenticated username).  Just looking through the text file would be an adequate &quot;record&quot;, akin to what your php logging would do.  In both cases, though, some automated parsing and whatnot would help make sense of the data, though.&lt;br&gt;
&lt;br&gt;
&lt;small&gt;(The Apache logs also include remote IP address, file accessed, and other useful stuff)&lt;/small&gt;</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2005:site.14439-248662</guid>
		<pubDate>Wed, 26 Jan 2005 10:34:24 -0800</pubDate>
		<dc:creator>Plutor</dc:creator>
	</item>
	</channel>
</rss>
