<?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>/ M@ / &#187; Apache</title>
	<atom:link href="http://matthewsnell.com/blog/tag/apache/feed/" rel="self" type="application/rss+xml" />
	<link>http://matthewsnell.com/blog</link>
	<description>Random things and geekery</description>
	<lastBuildDate>Wed, 06 May 2009 18:59:08 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Protecting Wordpress&#8217; Control Panel</title>
		<link>http://matthewsnell.com/blog/2007/10/10/protecting-wordpress-control-panel/</link>
		<comments>http://matthewsnell.com/blog/2007/10/10/protecting-wordpress-control-panel/#comments</comments>
		<pubDate>Wed, 10 Oct 2007 13:31:47 +0000</pubDate>
		<dc:creator>M@</dc:creator>
				<category><![CDATA[Geekery]]></category>
		<category><![CDATA[.htaccess]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[Blogging]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://matthewsnell.com/blog/2007/10/10/protecting-wordpress-control-panel/</guid>
		<description><![CDATA[Back when I started managing my own Wordpress (WP) install, I was (and by was, I mean will always be) paranoid about letting just anyone with a &#8216;puter at my /wp-admin dir.

/wp-admin is where you go in WP to control the blog.  It&#8217;s where you write to and post from, as well as perform [...]]]></description>
			<content:encoded><![CDATA[<p>Back when I started managing my own Wordpress (WP) install, I was (and by was, I mean will always be) paranoid about letting just <em><strong>anyone</strong></em> with a &#8216;puter at my <code>/wp-admin</code> dir.</p>
<ul>
<li><code>/wp-admin</code> is where you go in WP to control the blog.  It&#8217;s where you write to and post from, as well as perform administrative tasks.</li>
</ul>
<p>I felt it prudent, so I took a few steps to protect the place.  Firstly, I renamed the default <code>admin</code> account to something else.  A task made fairly easy using your web host&#8217;s tools (<code>phpmyadmin</code>).  Doing this will make it more difficult for fools to to make their way into the blog&#8217;s control panel.  I also set up one helluvagood pass phrase for myself.  Once that was done I took steps to limit just how many computers can hit that directory.  This was done with a <code>.htaccess</code> file.  Check out <a href="http://en.wikipedia.org/wiki/Htaccess">http://en.wikipedia.org/wiki/Htaccess</a>  for info on what else you can do with htaccess and some tutorials.</p>
<p>My file looks something like this:</p>
<blockquote><p> AuthUserFile /dev/null<br />
AuthGroupFile /dev/null<br />
AuthName &#8220;MattSnell&#8221;<br />
AuthType Basic<br />
&lt;LIMIT&gt;<br />
order deny,allow<br />
deny from all<br />
allow from 192.168.1.100<br />
allow from 192.168.1.101<br />
&lt;/LIMIT&gt;</p></blockquote>
<p>What it does is deny access to <strong>ALL</strong> IP addresses (<code>order deny,allow</code> and <code>deny from all</code>) and then selectively allows ONLY those in the <strong>allow from</strong> list.</p>
<p>Since I have two public IP addresses that almost never change, I just specify them in the allow list and upload the file to my <code>/wp-admin</code> directory using <code>scp</code> or <code>ftp</code>.  If my IP address ever changes, I won&#8217;t be able to edit or otherwise admin the blog until I go in and update the file.  No biggie, only takes a moment.</p>
<p>So there you have it, change the default admin username, set a good pass and limit how many IP addresses can access the control panel.  Feeling better already <img src='http://matthewsnell.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://matthewsnell.com/blog/2007/10/10/protecting-wordpress-control-panel/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
