<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Security Enhancing with htaccess</title>
	<atom:link href="http://www.askapache.com/htaccess/securing-subdirectories-with-htaccess.html/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.askapache.com/htaccess/securing-subdirectories-with-htaccess.html</link>
	<description>Advanced Web Development</description>
	<lastBuildDate>Thu, 16 May 2013 00:37:00 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Al</title>
		<link>http://www.askapache.com/htaccess/securing-subdirectories-with-htaccess.html#comment-366</link>
		<dc:creator>Al</dc:creator>
		<pubDate>Thu, 30 Sep 2010 20:56:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.askapache.com.com/htaccess/securing-subdirectories-with-htaccess.html#comment-366</guid>
		<description><![CDATA[I&#039;m not sure when you posted this, but excellent! I was looking the whole nigth till 06.00 in the morning and continued after a few hours sleep.

The first examples just did not work on my install for some reason, or because it is inside Drupal, where I like to have others view all of my modules/libraries/themes/plugins dirs and file contents of my test-installation, but not execute them. Both for security as well as that its meant for others to see source code.

First I did this:
&lt;pre&gt;Options +Indexes
IndexOptions +FancyIndexing&lt;/code&gt;
Then inside the added modules etc dirs, there are files like xxx.module, xxx.info and xxx.tpl.php that didn&#039;t show-up at all. To correct them, this worked:
&lt;pre&gt;
Order Allow,Deny
Allow from All&lt;/pre&gt;
Then I tried these examples and similar, but they all failed:  http://www.askapache.com/htaccess/security-with-htaccess.html#deny-htaccess-htpasswd-access

Sam for your examples at the beginning; they just don&#039;t work inside my Drupal/server config; don&#039;t know why.
But when trying your ultimate example; everything works perfect and I get the php contents instead of executing!
&lt;pre&gt;Options -ExecCGI
RemoveHandler .cgi .pl .py .php4 .pcgi4 .php .php3 .phtml .pcgi .php5 .pcgi5
RemoveType .cgi .pl .py .php4 .pcgi4 .php .php3 .phtml .pcgi .php5 .pcgi5&lt;/pre&gt;

I don&#039;t know why; think you haven&#039;t explained the last part of your conclusions and theory properly. But thanks a lot, because I couldn&#039;t find this elsewhere in many hours researching!]]></description>
		<content:encoded><![CDATA[<p>I'm not sure when you posted this, but excellent! I was looking the whole nigth till 06.00 in the morning and continued after a few hours sleep.</p>
<p>The first examples just did not work on my install for some reason, or because it is inside Drupal, where I like to have others view all of my modules/libraries/themes/plugins dirs and file contents of my test-installation, but not execute them. Both for security as well as that its meant for others to see source code.</p>
<p>First I did this:</p>
<pre>Options +Indexes
IndexOptions +FancyIndexing&lt;/code&gt;
Then inside the added modules etc dirs, there are files like xxx.module, xxx.info and xxx.tpl.php that didn't show-up at all. To correct them, this worked:
&lt;pre&gt;
Order Allow,Deny
Allow from All</pre>
<p>Then I tried these examples and similar, but they all failed:  http://www.askapache.com/htaccess/security-with-htaccess.html#deny-htaccess-htpasswd-access</p>
<p>Sam for your examples at the beginning; they just don't work inside my Drupal/server config; don't know why.<br />
But when trying your ultimate example; everything works perfect and I get the php contents instead of executing!</p>
<pre>Options -ExecCGI
RemoveHandler .cgi .pl .py .php4 .pcgi4 .php .php3 .phtml .pcgi .php5 .pcgi5
RemoveType .cgi .pl .py .php4 .pcgi4 .php .php3 .phtml .pcgi .php5 .pcgi5</pre>
<p>I don't know why; think you haven't explained the last part of your conclusions and theory properly. But thanks a lot, because I couldn't find this elsewhere in many hours researching!</p>
]]></content:encoded>
	</item>
</channel>
</rss>
