<?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/"
xmlns:series="http://unfoldingneurons.com/"
> <channel><title>Comments on: Advanced .htaccess Security &#8211; Block Access to Include Files Using&#160;.htaccess</title> <atom:link href="http://davidwalsh.name/htaccess-security-include-files/feed" rel="self" type="application/rss+xml" /><link>http://davidwalsh.name/htaccess-security-include-files</link> <description>Legendary scribbles about JavaScript, HTML5, AJAX, PHP, CSS, and ∞.</description> <lastBuildDate>Thu, 09 Feb 2012 15:40:33 +0000</lastBuildDate> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3</generator> <item><title>By: Shailesh Tripathi</title><link>http://davidwalsh.name/htaccess-security-include-files/comment-page-1#comment-28134</link> <dc:creator>Shailesh Tripathi</dc:creator> <pubDate>Wed, 28 Dec 2011 00:31:18 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/advanced-htaccess-security-block-access-to-include-files-using-htaccess/#comment-28134</guid> <description>Great tips on use htaccess very efficiently. Thanks</description> <content:encoded><![CDATA[<p>Great tips on use htaccess very efficiently. Thanks</p> ]]></content:encoded> </item> <item><title>By: Nicklas Smed</title><link>http://davidwalsh.name/htaccess-security-include-files/comment-page-1#comment-26843</link> <dc:creator>Nicklas Smed</dc:creator> <pubDate>Wed, 07 Sep 2011 13:31:31 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/advanced-htaccess-security-block-access-to-include-files-using-htaccess/#comment-26843</guid> <description>Maybe, this post could use an update.@Specs: I don&#039;t know the solution, but to deny access from all but the server, wouldn&#039;t solve your problem. As javascript files, are used by the user client, and not the server.</description> <content:encoded><![CDATA[<p>Maybe, this post could use an update.</p><p>@Specs: I don&#8217;t know the solution, but to deny access from all but the server, wouldn&#8217;t solve your problem. As javascript files, are used by the user client, and not the server.</p> ]]></content:encoded> </item> <item><title>By: Anu Nair</title><link>http://davidwalsh.name/htaccess-security-include-files/comment-page-1#comment-18513</link> <dc:creator>Anu Nair</dc:creator> <pubDate>Thu, 01 Jul 2010 11:51:42 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/advanced-htaccess-security-block-access-to-include-files-using-htaccess/#comment-18513</guid> <description>Wow!! That is really a cool trick... to block include files....Thanks.. :)</description> <content:encoded><![CDATA[<p>Wow!! That is really a cool trick&#8230; to block include files&#8230;.</p><p>Thanks.. :)</p> ]]></content:encoded> </item> <item><title>By: Specs</title><link>http://davidwalsh.name/htaccess-security-include-files/comment-page-1#comment-9247</link> <dc:creator>Specs</dc:creator> <pubDate>Fri, 15 May 2009 13:45:22 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/advanced-htaccess-security-block-access-to-include-files-using-htaccess/#comment-9247</guid> <description>I used this, but now my AJAX calls to .inc files (sends GET variables and then receives output from .inc file) aren&#039;t working anymore...&lt;blockquote&gt;
new Request.HTML({url: &#039;http://www.blah.com/includes/consultant&#095;ajax.inc?id=&#039;+id+&#039;&#039;,...
&lt;/blockquote&gt;Isn&#039;t there a way to define a &quot;Don&#039;t deny from server call&quot; or something (if this makes sense)?I&#039;m assuming the &quot;deny from all&quot; makes it fail even when a I make an AJAX call to the .inc file.Any thoughts?</description> <content:encoded><![CDATA[<p>I used this, but now my AJAX calls to .inc files (sends GET variables and then receives output from .inc file) aren&#8217;t working anymore&#8230;</p><blockquote><p> new Request.HTML({url: &#8216;<a
href="http://www.blah.com/includes/consultant&#095;ajax.inc?id=&#039;+id+&#039;&#039;,.." rel="nofollow">http://www.blah.com/includes/consultant&#095;ajax.inc?id=&#039;+id+&#039;&#039;,..</a>.</p></blockquote><p>Isn&#8217;t there a way to define a &#8220;Don&#8217;t deny from server call&#8221; or something (if this makes sense)?</p><p>I&#8217;m assuming the &#8220;deny from all&#8221; makes it fail even when a I make an AJAX call to the .inc file.</p><p>Any thoughts?</p> ]]></content:encoded> </item> <item><title>By: Specs</title><link>http://davidwalsh.name/htaccess-security-include-files/comment-page-1#comment-9246</link> <dc:creator>Specs</dc:creator> <pubDate>Fri, 15 May 2009 13:44:14 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/advanced-htaccess-security-block-access-to-include-files-using-htaccess/#comment-9246</guid> <description>I used this, but now my AJAX calls to .inc files (sends GET variables and then receives output from .inc file) aren&#039;t working anymore...&lt;blockquote&gt;
new Request.HTML({
url: &#039;http://www.blah.com/includes/consultant&#095;ajax.inc?id=&#039;+id+&#039;&#039;,
&lt;/blockquote&gt;Isn&#039;t there a way to define a &quot;Don&#039;t deny from server call&quot; or something (if this makes sense)?I&#039;m assuming the &quot;deny from all&quot; makes it fail even when a I make an AJAX call to the .inc file.Any thoughts?</description> <content:encoded><![CDATA[<p>I used this, but now my AJAX calls to .inc files (sends GET variables and then receives output from .inc file) aren&#8217;t working anymore&#8230;</p><blockquote><p> new Request.HTML({<br
/> url: &#8216;<a
href="http://www.blah.com/includes/consultant&#095;ajax.inc?id=&#039;+id+&#039;&#039;" rel="nofollow">http://www.blah.com/includes/consultant&#095;ajax.inc?id=&#039;+id+&#039;&#039;</a>,</p></blockquote><p>Isn&#8217;t there a way to define a &#8220;Don&#8217;t deny from server call&#8221; or something (if this makes sense)?</p><p>I&#8217;m assuming the &#8220;deny from all&#8221; makes it fail even when a I make an AJAX call to the .inc file.</p><p>Any thoughts?</p> ]]></content:encoded> </item> <item><title>By: Adam Schwartz</title><link>http://davidwalsh.name/htaccess-security-include-files/comment-page-1#comment-7585</link> <dc:creator>Adam Schwartz</dc:creator> <pubDate>Mon, 02 Feb 2009 09:08:18 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/advanced-htaccess-security-block-access-to-include-files-using-htaccess/#comment-7585</guid> <description>This is very cool. A similar trick I use a lot, and I believe Wordpress uses as well, is to check to see if a php file is being accessed directly.&lt;?php
//this document is called file.php
if (&#039;file.php&#039; == basename($&#095;SERVER[&#039;SCRIPT&#095;FILENAME&#039;]))
die (&#039;Do not access this page directly.&#039;);
?&gt;(Please convert my  &#095;  to  _  )</description> <content:encoded><![CDATA[<p>This is very cool. A similar trick I use a lot, and I believe WordPress uses as well, is to check to see if a php file is being accessed directly.</p><p>&lt;?php<br
/> //this document is called file.php<br
/> if (&#8216;file.php&#8217; == basename($&#95;SERVER['SCRIPT&#95;FILENAME']))<br
/> die (&#8216;Do not access this page directly.&#8217;);<br
/> ?&gt;</p><p>(Please convert my  &#95;  to  _  )</p> ]]></content:encoded> </item> <item><title>By: david</title><link>http://davidwalsh.name/htaccess-security-include-files/comment-page-1#comment-150</link> <dc:creator>david</dc:creator> <pubDate>Tue, 25 Mar 2008 23:19:26 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/advanced-htaccess-security-block-access-to-include-files-using-htaccess/#comment-150</guid> <description>@pfwd:  I believe if you&#039;re clever with regular expressions you should be able to.</description> <content:encoded><![CDATA[<p>@pfwd:  I believe if you&#8217;re clever with regular expressions you should be able to.</p> ]]></content:encoded> </item> <item><title>By: pfwd.tech</title><link>http://davidwalsh.name/htaccess-security-include-files/comment-page-1#comment-152</link> <dc:creator>pfwd.tech</dc:creator> <pubDate>Tue, 25 Mar 2008 23:08:53 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/advanced-htaccess-security-block-access-to-include-files-using-htaccess/#comment-152</guid> <description>nice work.
Are you able to add multiple filenames/file paths to the  tag?</description> <content:encoded><![CDATA[<p>nice work.<br
/> Are you able to add multiple filenames/file paths to the  tag?</p> ]]></content:encoded> </item> <item><title>By: david</title><link>http://davidwalsh.name/htaccess-security-include-files/comment-page-1#comment-151</link> <dc:creator>david</dc:creator> <pubDate>Tue, 25 Mar 2008 22:26:24 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/advanced-htaccess-security-block-access-to-include-files-using-htaccess/#comment-151</guid> <description>@Charles:  It shouldn&#039;t matter where in your .htaccess file you place the above snippet.</description> <content:encoded><![CDATA[<p>@Charles:  It shouldn&#8217;t matter where in your .htaccess file you place the above snippet.</p> ]]></content:encoded> </item> <item><title>By: charles</title><link>http://davidwalsh.name/htaccess-security-include-files/comment-page-1#comment-149</link> <dc:creator>charles</dc:creator> <pubDate>Tue, 25 Mar 2008 15:04:06 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/advanced-htaccess-security-block-access-to-include-files-using-htaccess/#comment-149</guid> <description>where in the .htaccess file do you place that code (the second block of code in your entry)?</description> <content:encoded><![CDATA[<p>where in the .htaccess file do you place that code (the second block of code in your entry)?</p> ]]></content:encoded> </item> </channel> </rss>
<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic
Page Caching using disk: enhanced (User agent is rejected)
Database Caching 1/17 queries in 0.013 seconds using disk: basic
Object Caching 865/866 objects using disk: basic

Served from: davidwalsh.name @ 2012-02-09 10:51:28 -->
