<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Blog by Andreas Glaser &#187; Httpd</title>
	<atom:link href="http://www.andreas-glaser.com/tag/httpd/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.andreas-glaser.com</link>
	<description>Development, Technology and such...</description>
	<lastBuildDate>Wed, 18 May 2011 23:16:12 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>.htaccess &#8211; How to restrict browsing through directories</title>
		<link>http://www.andreas-glaser.com/2008/10/28/htaccess-how-to-restrict-browsing-through-directories/</link>
		<comments>http://www.andreas-glaser.com/2008/10/28/htaccess-how-to-restrict-browsing-through-directories/#comments</comments>
		<pubDate>Tue, 28 Oct 2008 15:35:05 +0000</pubDate>
		<dc:creator>Andreas Glaser</dc:creator>
				<category><![CDATA[Computer]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[.htaccess]]></category>
		<category><![CDATA[Apache2]]></category>
		<category><![CDATA[Httpd]]></category>
		<category><![CDATA[Webserver]]></category>

		<guid isPermaLink="false">http://www.andreas-glaser.com/?p=253</guid>
		<description><![CDATA[If you want to prevent users from browsing certain directories on your website you can use the powerful .htaccess  file (Apache only). With the .htaccess file you are able to override some default settings like allowing / denying users to browse through directories. This is very useful when you use a certain directory to save [...]]]></description>
			<content:encoded><![CDATA[<p>If you want to prevent users from browsing certain directories on your website you can use the powerful .htaccess  file (<a title="Httpd" href="http://www.google.ie/search?hl=en&amp;client=firefox-a&amp;rls=org.mozilla%3Aen-GB%3Aofficial&amp;hs=syV&amp;q=httpd&amp;btnG=Search&amp;meta=" target="_blank">Apache only</a>). With the .htaccess file you are able to override some default settings like allowing / denying users to browse through directories. This is very useful when you use a certain directory to save for instance: templates, pictures, files or similar things (e.g. http://www.yourdomain.com/files).</p>
<p><strong>How to prevent users from browsing through directories&#8230;</strong></p>
<ol>
<li>Create a new file (txt) and rename it to .htaccess</li>
<li>Insert the following string into your new .htaccess file:

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p253code2'); return false;">View Code</a> BASH</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p2532"><td class="line_numbers"><pre>1
2
3
</pre></td><td class="code" id="p253code2"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;"># DENY CLIENTS TO BROWSE THE CURRENT AND ALL SUB DIRECTORIES</span>
&nbsp;
Options All <span style="color: #660033;">-Indexes</span></pre></td></tr></table></div>

</li>
<li>Upload this file into the directory which shall be not allowed to browse.</li>
</ol>
<p>Thats it!</p>
<p><em><strong>So long,<br />
Andreas Glaser (aka JaZz)</strong></em></p>
<fb:like href='http://www.andreas-glaser.com/2008/10/28/htaccess-how-to-restrict-browsing-through-directories/' send='' layout='standard' show_faces='true' width='450' height='65' action='like' colorscheme='light' font='lucida+grande'></fb:like>]]></content:encoded>
			<wfw:commentRss>http://www.andreas-glaser.com/2008/10/28/htaccess-how-to-restrict-browsing-through-directories/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

