<?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: Как запретить просмотр содержимого папки на сервере</title>
	<atom:link href="http://www.simplecoding.org/kak-zapretit-prosmotr-soderzhimogo-papki-na-servere.html/feed" rel="self" type="application/rss+xml" />
	<link>http://www.simplecoding.org/kak-zapretit-prosmotr-soderzhimogo-papki-na-servere.html</link>
	<description>Блог о программировании</description>
	<lastBuildDate>Wed, 08 Feb 2012 17:39:18 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
	<item>
		<title>By: Megamasyanya</title>
		<link>http://www.simplecoding.org/kak-zapretit-prosmotr-soderzhimogo-papki-na-servere.html#comment-20665</link>
		<dc:creator>Megamasyanya</dc:creator>
		<pubDate>Thu, 02 Feb 2012 13:01:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.simplecoding.org/?p=385#comment-20665</guid>
		<description>Спасибо большое и за статью, и за вопросы и ответы. Мне помогло.</description>
		<content:encoded><![CDATA[<p>Спасибо большое и за статью, и за вопросы и ответы. Мне помогло.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Владимир</title>
		<link>http://www.simplecoding.org/kak-zapretit-prosmotr-soderzhimogo-papki-na-servere.html#comment-20064</link>
		<dc:creator>Владимир</dc:creator>
		<pubDate>Mon, 10 Oct 2011 15:57:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.simplecoding.org/?p=385#comment-20064</guid>
		<description>Существует довольно много файловых браузеров, которые вы можете установить на своем хостинге - &lt;a href=&quot;http://habrahabr.ru/blogs/personal/64765/&quot; rel=&quot;nofollow&quot;&gt;выбирайте&lt;/a&gt;</description>
		<content:encoded><![CDATA[<p>Существует довольно много файловых браузеров, которые вы можете установить на своем хостинге &#8211; <a href="http://habrahabr.ru/blogs/personal/64765/" rel="nofollow">выбирайте</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Elena</title>
		<link>http://www.simplecoding.org/kak-zapretit-prosmotr-soderzhimogo-papki-na-servere.html#comment-20062</link>
		<dc:creator>Elena</dc:creator>
		<pubDate>Mon, 10 Oct 2011 01:30:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.simplecoding.org/?p=385#comment-20062</guid>
		<description>Нет, закачка д.б. по ftp, а скачка с http</description>
		<content:encoded><![CDATA[<p>Нет, закачка д.б. по ftp, а скачка с http</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Владимир</title>
		<link>http://www.simplecoding.org/kak-zapretit-prosmotr-soderzhimogo-papki-na-servere.html#comment-20060</link>
		<dc:creator>Владимир</dc:creator>
		<pubDate>Sun, 09 Oct 2011 19:29:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.simplecoding.org/?p=385#comment-20060</guid>
		<description>Самый простой вариант - установить ftp сервер.</description>
		<content:encoded><![CDATA[<p>Самый простой вариант &#8211; установить ftp сервер.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Elena</title>
		<link>http://www.simplecoding.org/kak-zapretit-prosmotr-soderzhimogo-papki-na-servere.html#comment-20059</link>
		<dc:creator>Elena</dc:creator>
		<pubDate>Sun, 09 Oct 2011 09:22:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.simplecoding.org/?p=385#comment-20059</guid>
		<description>Добрый день!
А мне нужно как раз дать возможность пользователю серверу просмотреть содержимое каталога, подкаталогов и скачать нужные файлы из них. Имена каталогов постоянные, а имена файлов меняются.
Заранее благодарю.
</description>
		<content:encoded><![CDATA[<p>Добрый день!<br />
А мне нужно как раз дать возможность пользователю серверу просмотреть содержимое каталога, подкаталогов и скачать нужные файлы из них. Имена каталогов постоянные, а имена файлов меняются.<br />
Заранее благодарю.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Artur Tkachenko</title>
		<link>http://www.simplecoding.org/kak-zapretit-prosmotr-soderzhimogo-papki-na-servere.html#comment-19814</link>
		<dc:creator>Artur Tkachenko</dc:creator>
		<pubDate>Thu, 04 Aug 2011 08:30:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.simplecoding.org/?p=385#comment-19814</guid>
		<description>ага я всегда делаю) в каждую папку сую файл index.html  
с текстом &quot;просмотр содержимого этой страницы запрещён&quot; :)</description>
		<content:encoded><![CDATA[<p>ага я всегда делаю) в каждую папку сую файл index.html  <br />
с текстом &#034;просмотр содержимого этой страницы запрещён&#034; <img src='http://www.simplecoding.org/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Владимир</title>
		<link>http://www.simplecoding.org/kak-zapretit-prosmotr-soderzhimogo-papki-na-servere.html#comment-19271</link>
		<dc:creator>Владимир</dc:creator>
		<pubDate>Tue, 22 Mar 2011 14:10:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.simplecoding.org/?p=385#comment-19271</guid>
		<description>Если я правильно понимаю, вы не хотите чтобы к файлу обращались напрямую, а все запросы шли через index.php?

Чтобы не зависеть от htaccess и настроек сервера можно сделать так.

В index.php объявляете какую-нибудь константу.
define(&#039;HELL0&#039;,&#039;Hello, world!&#039;);

В самое начало main.php (и всех остальных файлов к которым нужно закрыть доступ) добавляете

if (!defined(&#039;HELL0&#039;)) exit(&#039;Please, don&#039;t access this script directly&#039;);</description>
		<content:encoded><![CDATA[<p>Если я правильно понимаю, вы не хотите чтобы к файлу обращались напрямую, а все запросы шли через index.php?</p>
<p>Чтобы не зависеть от htaccess и настроек сервера можно сделать так.</p>
<p>В index.php объявляете какую-нибудь константу.<br />
define(&#039;HELL0&#039;,&#039;Hello, world!&#039;);</p>
<p>В самое начало main.php (и всех остальных файлов к которым нужно закрыть доступ) добавляете</p>
<p>if (!defined(&#039;HELL0&#039;)) exit(&#039;Please, don&#039;t access this script directly&#039;);</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: James</title>
		<link>http://www.simplecoding.org/kak-zapretit-prosmotr-soderzhimogo-papki-na-servere.html#comment-19268</link>
		<dc:creator>James</dc:creator>
		<pubDate>Mon, 21 Mar 2011 13:54:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.simplecoding.org/?p=385#comment-19268</guid>
		<description>Еще вопрос из той же оперы - есть сайт, в корне лежит файлы index.php и допустим main.php. Вопрос - как запретить доступ к main.php и к любым другим файлам через http://site.ru/main.php

Спасибо</description>
		<content:encoded><![CDATA[<p>Еще вопрос из той же оперы &#8211; есть сайт, в корне лежит файлы index.php и допустим main.php. Вопрос &#8211; как запретить доступ к main.php и к любым другим файлам через <a href="http://site.ru/main.php" rel="nofollow">http://site.ru/main.php</a></p>
<p>Спасибо</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gmobix</title>
		<link>http://www.simplecoding.org/kak-zapretit-prosmotr-soderzhimogo-papki-na-servere.html#comment-19167</link>
		<dc:creator>Gmobix</dc:creator>
		<pubDate>Mon, 21 Feb 2011 17:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.simplecoding.org/?p=385#comment-19167</guid>
		<description>Спасибо</description>
		<content:encoded><![CDATA[<p>Спасибо</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Владимир</title>
		<link>http://www.simplecoding.org/kak-zapretit-prosmotr-soderzhimogo-papki-na-servere.html#comment-18974</link>
		<dc:creator>Владимир</dc:creator>
		<pubDate>Wed, 19 Jan 2011 16:18:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.simplecoding.org/?p=385#comment-18974</guid>
		<description>Разбейте файлы на 2 папки. К одной из них запретите доступ.</description>
		<content:encoded><![CDATA[<p>Разбейте файлы на 2 папки. К одной из них запретите доступ.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

