<?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>Wordpress Security &#187; .htaccess Hacks</title>
	<atom:link href="http://wpsecure.org/category/htaccess-hacks/feed/" rel="self" type="application/rss+xml" />
	<link>http://wpsecure.org</link>
	<description>How to Secure Your WordPress Blog</description>
	<lastBuildDate>Mon, 05 Oct 2009 05:47:50 +0000</lastBuildDate>
	
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Deny Access to wp-config.php</title>
		<link>http://wpsecure.org/deny-access-to-wp-config-php/</link>
		<comments>http://wpsecure.org/deny-access-to-wp-config-php/#comments</comments>
		<pubDate>Mon, 05 Oct 2009 04:48:29 +0000</pubDate>
		<dc:creator>David Turnbull</dc:creator>
				<category><![CDATA[.htaccess Hacks]]></category>

		<guid isPermaLink="false">http://wpsecure.org/?p=168</guid>
		<description><![CDATA[Just like we can deny access to readme.html, it&#8217;s possible to deny public access to wp-config.php using the .htaccess file. But, before doing this, ask yourself this question:
Is your blog installed in the /public_html folder?
If it is, then instead of using .htaccess to prevent public access to the file, it&#8217;d probably be better to move [...]]]></description>
			<content:encoded><![CDATA[<p>Just like we can <a href="http://wpsecure.org/deny-access-to-readme-html/">deny access to readme.html</a>, it&#8217;s possible to deny public access to wp-config.php using the .htaccess file. But, before doing this, ask yourself this question:</p>
<p><strong>Is your blog installed in the /public_html folder?</strong></p>
<p>If it is, then instead of using .htaccess to prevent public access to the file, it&#8217;d probably be better to <a href="http://wpsecure.org/move-wp-config-php/">move the wp-config.php file</a>.</p>
<p>For everyone else, add the following code to the .htaccess file thats in the same directory as your wp-config.php file.</p>
<blockquote><p># protect wp-config.php<br />
&lt;files wp-config.php&gt;<br />
Order deny,allow<br />
deny from all<br />
&lt;/files&gt;</p></blockquote>
<h3  class="related_post_title">You might also want to read...</h3><ul class="related_post"><li><a href="http://wpsecure.org/how-to-use-this-guide/" title="How to Use this Guide">How to Use this Guide</a></li><li><a href="http://wpsecure.org/strong-passwords/" title="Strong Passwords">Strong Passwords</a></li><li><a href="http://wpsecure.org/cookie-encryption/" title="Cookie Encryption">Cookie Encryption</a></li><li><a href="http://wpsecure.org/local-backups/" title="Local Backups">Local Backups</a></li><li><a href="http://wpsecure.org/perishable-3g-blacklist/" title="Perishable 3G Blacklist">Perishable 3G Blacklist</a></li><li><a href="http://wpsecure.org/updating-wordpress/" title="Updating WordPress">Updating WordPress</a></li><li><a href="http://wpsecure.org/how-to-protect-wp-config-php/" title="How to Protect wp-config.php">How to Protect wp-config.php</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://wpsecure.org/deny-access-to-wp-config-php/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Perishable 3G Blacklist</title>
		<link>http://wpsecure.org/perishable-3g-blacklist/</link>
		<comments>http://wpsecure.org/perishable-3g-blacklist/#comments</comments>
		<pubDate>Sun, 04 Oct 2009 12:07:16 +0000</pubDate>
		<dc:creator>David Turnbull</dc:creator>
				<category><![CDATA[.htaccess Hacks]]></category>

		<guid isPermaLink="false">http://wpsecure.org/?p=27</guid>
		<description><![CDATA[The 3G Blacklist is a block of code put together by Jeff Starr that you drop into your .htaccess file to fight the majority of common security exploits. While not strictly a Wordpress-related .htaccess hack it’s a must have for anyone running on an Apache-based server (which would be most people reading this guide).
To find [...]]]></description>
			<content:encoded><![CDATA[<p>The 3G Blacklist is a block of code put together by Jeff Starr that you drop into your .htaccess file to fight the majority of common security exploits. While not strictly a Wordpress-related .htaccess hack it’s a must have for anyone running on an Apache-based server (which would be most people reading this guide).</p>
<p>To find out how to make use of this brilliant resource visit <a href="http://perishablepress.com/press/2008/05/13/perishable-press-3g-blacklist/">the official site</a>.</p>
<p>Here’s a quick summary from Jeff:</p>
<blockquote><p>Work on the 3G Blacklist required several weeks of research, testing, and analysis. During the development process, five major improvements were discovered, documented, and implemented. Using pattern recognition, access immunization, and multiple layers of protection, the 3G Blacklist serves as an extremely effective security strategy for preventing a vast majority of common exploits.</p>
<p>The list consists of four distinct parts, providing multiple layers of protection while synergizing into a comprehensive defense mechanism. Further, as discussed in previous articles, the 3G Blacklist is designed to be as lightweight and flexible as possible, thereby facilitating periodic cultivation and maintenance.</p></blockquote>
<h3  class="related_post_title">You might also want to read...</h3><ul class="related_post"><li><a href="http://wpsecure.org/askapache-password-protect/" title="AskApache Password Protect">AskApache Password Protect</a></li><li><a href="http://wpsecure.org/hide-the-version-number/" title="Hide the Version Number">Hide the Version Number</a></li><li><a href="http://wpsecure.org/stealth-login/" title="Stealth Login">Stealth Login</a></li><li><a href="http://wpsecure.org/the-basics-of-blog-security/" title="The Basics of Blog Security">The Basics of Blog Security</a></li><li><a href="http://wpsecure.org/wp-db-backup/" title="WP DB Backup">WP DB Backup</a></li><li><a href="http://wpsecure.org/delete-the-default-administrator/" title="Delete the Default Administrator">Delete the Default Administrator</a></li><li><a href="http://wpsecure.org/deny-access-to-wp-config-php/" title="Deny Access to wp-config.php">Deny Access to wp-config.php</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://wpsecure.org/perishable-3g-blacklist/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Deny Access to readme.html</title>
		<link>http://wpsecure.org/deny-access-to-readme-html/</link>
		<comments>http://wpsecure.org/deny-access-to-readme-html/#comments</comments>
		<pubDate>Sun, 04 Oct 2009 12:05:18 +0000</pubDate>
		<dc:creator>David Turnbull</dc:creator>
				<category><![CDATA[.htaccess Hacks]]></category>

		<guid isPermaLink="false">http://wpsecure.org/?p=25</guid>
		<description><![CDATA[One of the first steps a malicious hacker has to take when trying to &#8220;invade&#8221; your Wordpress blog is discover what version of the software you&#8217;re running. Unfortunately Wordpress makes this a tad too easy by placing the version number right in the public_html directory in the readme.html file. And even if you delete it [...]]]></description>
			<content:encoded><![CDATA[<p>One of the first steps a malicious hacker has to take when trying to &#8220;invade&#8221; your Wordpress blog is discover what version of the software you&#8217;re running. Unfortunately Wordpress makes this a tad too easy by placing the version number right in the public_html directory in the readme.html file. And even if you delete it once the file comes back next time you upgrade.</p>
<p>Place this code in your .htaccess file and no one will be able to access the readme.html file if you forget to delete it.</p>
<blockquote><p># protect readme.html<br />
&lt;files readme.html&gt;<br />
Order deny,allow<br />
deny from all<br />
&lt;/files&gt;</p></blockquote>
<h3  class="related_post_title">You might also want to read...</h3><ul class="related_post"><li><a href="http://wpsecure.org/blogging-from-public-computers/" title="Blogging from Public Computers">Blogging from Public Computers</a></li><li><a href="http://wpsecure.org/hide-the-version-number/" title="Hide the Version Number">Hide the Version Number</a></li><li><a href="http://wpsecure.org/what-is-the-secure-wordpress-project/" title="What is the Secure WordPress project?">What is the Secure WordPress project?</a></li><li><a href="http://wpsecure.org/move-wp-config-php/" title="Move wp-config.php">Move wp-config.php</a></li><li><a href="http://wpsecure.org/local-backups/" title="Local Backups">Local Backups</a></li><li><a href="http://wpsecure.org/other-wordpress-tricks/" title="Other WordPress Tricks">Other WordPress Tricks</a></li><li><a href="http://wpsecure.org/how-to-protect-wp-admin/" title="How to Protect /wp-admin">How to Protect /wp-admin</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://wpsecure.org/deny-access-to-readme-html/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Secure Your wp-admin Folder</title>
		<link>http://wpsecure.org/secure-your-wp-admin-folder/</link>
		<comments>http://wpsecure.org/secure-your-wp-admin-folder/#comments</comments>
		<pubDate>Sun, 04 Oct 2009 12:02:33 +0000</pubDate>
		<dc:creator>David Turnbull</dc:creator>
				<category><![CDATA[.htaccess Hacks]]></category>

		<guid isPermaLink="false">http://wpsecure.org/?p=21</guid>
		<description><![CDATA[If you&#8217;re a blogger that generally stays put and has a static IP address then there&#8217;s a simple and effective way to block the rest of the world from accessing your administration area, and if they can&#8217;t access it, then you&#8217;re protected from brute force attacks and any intrusion that involves navigating to /wp-admin.
There&#8217;s all [...]]]></description>
			<content:encoded><![CDATA[<p>If you&#8217;re a blogger that generally stays put and has a static IP address then there&#8217;s a simple and effective way to block the rest of the world from accessing your administration area, and if they can&#8217;t access it, then you&#8217;re protected from brute force attacks and any intrusion that involves navigating to /wp-admin.</p>
<p>There&#8217;s all the added benefit of blocking intruders from accessing your admin area even if they do somehow get your login details. Of course there&#8217;s still the chance of them fooling this method with IP spoofing but it might just hold them off long enough for you to lock them out.</p>
<p>Anyways, login to your server via FTP (or SFTP if you want to be extra awesome) and navigate to /wp-admin folder. If you haven&#8217;t done so already, create a .htaccess file and place this code in there:</p>
<blockquote><p>order deny, allow<br />
allow from xxx.xxx.xx<br />
deny from all</p></blockquote>
<p>But wait! You&#8217;re not done yet…</p>
<p>Head over to <a href="http://www.whatismyip.com">whatismyip.com</a> and find out what your IP address is. Replace xxx.xxx.xx with your IP address and save the file.</p>
<p>The problem with this method is not all bloggers work from the same computer or IP address all the time. For those folk you&#8217;ll want to read the section about the <a href="http://wpsecure.org/askapache-password-protect/">AskApache Password Protect plugin</a>.</p>
<h3  class="related_post_title">You might also want to read...</h3><ul class="related_post"><li><a href="http://wpsecure.org/ethical-and-privacy-issues-of-data-storage/" title="Ethical and Privacy Issues of Data Storage">Ethical and Privacy Issues of Data Storage</a></li><li><a href="http://wpsecure.org/how-to-use-this-guide/" title="How to Use this Guide">How to Use this Guide</a></li><li><a href="http://wpsecure.org/login-lockdown/" title="Login Lockdown">Login Lockdown</a></li><li><a href="http://wpsecure.org/stealth-login/" title="Stealth Login">Stealth Login</a></li><li><a href="http://wpsecure.org/askapache-password-protect/" title="AskApache Password Protect">AskApache Password Protect</a></li><li><a href="http://wpsecure.org/hide-the-version-number/" title="Hide the Version Number">Hide the Version Number</a></li><li><a href="http://wpsecure.org/delete-the-default-administrator/" title="Delete the Default Administrator">Delete the Default Administrator</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://wpsecure.org/secure-your-wp-admin-folder/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->