<?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>The Web Mechanic &#187; WordPress Security</title>
	<atom:link href="http://www.the-web-mechanic.com/category/wordpress-security/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.the-web-mechanic.com</link>
	<description>The Web Mechanic fixes what annoys you about your web site or blog.</description>
	<lastBuildDate>Tue, 27 Jul 2010 16:10:56 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=abc</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>10 Steps to WordPress Security Protection</title>
		<link>http://www.the-web-mechanic.com/wordpress-security-protection/</link>
		<comments>http://www.the-web-mechanic.com/wordpress-security-protection/#comments</comments>
		<pubDate>Sun, 24 Jan 2010 23:40:59 +0000</pubDate>
		<dc:creator>ken</dc:creator>
				<category><![CDATA[WordPress Security]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[Wordpress Help]]></category>
		<category><![CDATA[wordpress question]]></category>

		<guid isPermaLink="false">http://www.the-web-mechanic.com/?p=572</guid>
		<description><![CDATA[<h1 style="text-align: center;"><span style="font-size: x-large;"><span style="font-family: tahoma,arial,helvetica,sans-serif;">10 Steps to WordPress Security Protection</span></span></h1> <p><span style="font-size: x-large;">S</span>cripted websites/ blogs using WordPress are becoming more and more common. And as such they are becoming ever more tempting targets for hackers and trashers. It might be something as simple as&#8230; <a href="http://www.the-web-mechanic.com/wordpress-security-protection/" class="read_more">Read the rest</a></p> [...]]]></description>
			<content:encoded><![CDATA[<h1 style="text-align: center;"><span style="font-size: x-large;"><span style="font-family: tahoma,arial,helvetica,sans-serif;">10 Steps to WordPress Security Protection</span></span></h1>
<p><span style="font-size: x-large;">S</span>cripted websites/ blogs using WordPress are becoming more and more common. And as such they are becoming ever more tempting targets for hackers and trashers. It might be something as simple as putting a picture on your site that goes &#8220;phhpttttt!!! I was here!&#8221; Or it might go so far as to taking over your site, denying you access to it and then holding your site for ransom. Malicious code can be placed on your site that might infect visitors&#8217; computers and not the least of your worries, get you banned by the search engines.</p>
<p><a title="wordpress.org" href="http://www.wordpress.org"><span style="font-size: x-large;">W</span>ordpress.org</a> does a great job of eliminating potential entryways into the WordPress code with frequent updates. However, it is open-source code and is developed by hundreds if not thousands of people. (especially when you consider the myriad of themes and plugins available) Unfortunately, hackers work just as hard to find ways to exploit WordPress any way they can.</p>
<p><span style="font-size: x-large;">W</span>hat can you do?</p>
<p><span style="font-size: x-large;">I</span> have compiled a number of things that you can do proactively to help keep your WordpPress secure. Note: I said &#8220;help&#8221; keep your site secure. When it comes to websites and hackers, there is no guarantee that your site can&#8217;t be successfully attacked. But you can make your site unpalatable to attack and more secure.</p>
<p><span style="color: #cc0000;"><span style="font-size: x-large;">Warning!</span></span> The security measures below range from quick and easy to those demanding some &#8220;chops&#8221; in coding. It is possible to incorrectly implement some these steps and lock yourself out from your site with no way to correct your mistake. You could even damage your site yourself. I can take no responsibility for any problems you might have from applying these security measures.</p>
<p><span style="font-size: x-large;">T</span>hat being said&#8230; we&#8217;ll start with the basic ones and get more complicated as we go on.</p>
<p><br class="spacer_" /></p>
<ol>
<li><span style="font-size: x-large;">A</span>lways use the latest version of WordPress. As I mentioned, software security is an ongoing struggle and WordPress.org does a great job of addressing the latest threats. If you have concerns about being a &#8220;first adopter&#8221; of new versions, wait a few days or a week before updating. Be aware that updating may cause problems with your plugins or themes. You should back-up your WordPress before updating. See <a title="Backing up WordPress" href="http://codex.wordpress.org/Backing_Up_Your_Database">wordpress.org</a> for details. </li>
<p><br class="spacer_" /></p>
<li><span style="font-size: x-large;">D</span>on&#8217;t use a simple, easy password. Did you know that the most commonly used passwords are &#8220;password&#8221; and &#8220;1234567&#8243;? Is that you? As reported by PCmag.com here are the <a title="10 Most Common Passwords" href="http://www.pcmag.com/article2/0,2817,2113976,00.asp">10 Most Common Passwords.</a> You should use a strong password that incorporates numbers, upper and lower case letters and &#8220;special&#8221; characters like ! &#8221; ? $ % ^ &amp; ) I know, I know, it&#8217;s going to be hard to remember. Write it down, have your browser memorize it&#8230; It&#8217;s better than giving carte blanche to your site! WordPress can generate a random strong password for you. In your Dashboard go to &#8220;Users&#8221; and select your account name (for most people it&#8217;s probably &#8220;admin&#8221;) and make sure that your email address is correct. Log out from WordPress and then instead of logging in again, click on &#8220;Lost Your Password?&#8221; Your WordPress will email a new, strong randomly generated password. </li>
<p><br class="spacer_" /></p>
<li><span style="font-size: x-large;">N</span>ow that we have talked about your &#8220;admin&#8221; user account&#8230; Get rid of it!  Well, not totally. Add a new user with full administrator privileges.  Use a not totally obvious username and a strong password. Log out of WordPress and then login with your new username and password. Now you can go to the &#8220;Users&#8221; area and edit the &#8220;admin&#8221; user account. Most people leave the main username as &#8220;admin&#8221; &#8230; attackers know this!  Edit your &#8220;admin&#8221; user by changing its role from &#8220;administrator&#8221; to &#8220;subscriber&#8221;. Save the change. Now if a hacker tries to take over the standard &#8220;admin&#8221; account, they will have no privileges to change anything.<br />
 <strong>Note!</strong> If you installed your WordPress site using Fantastico, you were probably already prompted to enter your own username and password during setup. Change your password to a strong one if you did not do so originally. </li>
<p><br class="spacer_" /></p>
<li><span style="font-size: x-large;">I</span>n the Dashboard navigate to  Settings-General. Make sure that the &#8220;Membership-Anyone can register&#8221; checkbox is <span style="text-decoration: underline;">un</span>checked. Be sure that the &#8220;New User Default Role&#8221; is set to subscriber. </li>
<p><br class="spacer_" /></p>
<li><span style="font-size: x-large;">T</span>his is a good time to add some login protection. Hackers will often try a brute force means of accessing your site by trying thousands of passwords in hopes of discovering the right one. The &#8220;Login Lockdown&#8221; plugin will, upon activation, deny login access for 60 minutes to anyone who tries 3 wrong passwords in 5 minutes. If you want to adjust these settings, you can modify them on the <a title="Login Lockdown" href="http://wordpress.org/extend/plugins/login-lockdown/">Login Lockdown</a> configuration page. </li>
<p><br class="spacer_" /></p>
<li><span style="font-size: x-large;">H</span>ere&#8217;s another plugin that can help keep the wolves at bay. It&#8217;s the <a title="WordPress Firewall" href="http://wordpress.org/extend/plugins/wordpress-firewall/">WordPress Firewall</a> plugin. This plugin does a lot! It monitors your WordPress site for attacks, protects your plugins, and is a Swiss Army Knife of protection&#8230; You can read about its features at the <a title="WordPress Firewall plugin" href="http://www.seoegghead.com/software/wordpress-firewall.seo">plugin homepage</a>. </li>
<p><br class="spacer_" /></p>
<li><span style="font-size: x-large;">N</span>ow this is where we start getting more geeky. In the root of your WordPress installation is a file called .htaccess. It can control a lot of things on your website. More than I can go into in this post. Anyway, you can add this following line into the .htaccess file using a text editor.
<div><pre style="background-color: #ffff99;font-size:.7em;">
# prevent directory browsing  
Options All -Indexes</pre></div>
<p><span style="font-size: x-large;">N</span>ormally browsers can see into folders and report on and even access the files within. To prevent this random viewing website designers put an empty index.html file into each folder. WordPress has many, many folders &#8211; too many to make this practical. Making this addition to the .htaccess file denies folder will keep browsers (and people) out of folders where they have no need of access.</p>
<p><br class="spacer_" /></p>
</li>
<li><span style="font-size: x-large;">I</span>n the WordPress root there is a file named wp-config.php, it&#8217;s quite an important file and you don&#8217;t want someone to &#8220;accidentally&#8221; gain access to it as it contains the username and password for your mySQL database connection. We can deny access to it by adding a few more lines to the same .htaccess file that we mentioned in #7.
<div><pre style="background-color: #ffff99;font-size:.7em;">
<code># protect wpconfig.php
&lt;files wp-config.php&gt;
Order deny,allow
deny from all
&lt;/files&gt;</code></pre></div>
</li>
<p><br class="spacer_" /></p>
<li><span style="font-size: x-large;">T</span>his next tip I found is from Jeff Starr at the <a title="Perishable Press" href="http://perishablepress.com/">Perishable Press</a> website.  Many recent attacks on WordPress have used very long request strings&#8230; Much longer than legitimate ones would be. The code below can be copied to make a php file that can be placed in your WP plugin folder. Further explanation may be found at his blog post &#8220;<a href="http://perishablepress.com/press/2009/12/22/protect-wordpress-against-malicious-url-requests/">Protect WordPress Against Malicious URL Requests</a>&#8221;
<div><pre  style="background-color: #ffff99;font-size:.7em;">
&lt;?php /* Plugin Name: Block Bad Queries */

if (strlen($_SERVER['REQUEST_URI']) &gt; 255 || 
     strpos($_SERVER['REQUEST_URI'], "eval(") || 
	strpos($_SERVER['REQUEST_URI'], "base64")) {
          @header("HTTP/1.1 414 Request-URI Too Long");
          @header("Status: 414 Request-URI Too Long");
          @header("Connection: Close");
          @exit;
} ?&gt;</pre></div>
</li>
<p><br class="spacer_" /></p>
<li><span style="font-size: x-large;">W</span>ordPress.org suggests replacing the &#8220;Secret Keys&#8221; in your wp-config.php file with your own secret ones. If you go to the <a title="WordPress secret key generator" href="http://api.wordpress.org/secret-key/1.1/">WordPress Secret Key Generator</a> a randomly set will be generated similar to these below (don&#8217;t use these.. they wouldn&#8217;t be very secret!)<br />
<pre><pre style="font-size: .7em;">define(&#039;AUTH_KEY&#039;,&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#039;N!3MZ9+&amp;gt;l-5)=K&amp;amp;+_j7mM+}ZK5UFvZQ E{=*Vzp0Eae+i^oXY]!)B@vFj?x;&amp;amp;y=c&#039;);
define(&#039;SECURE_AUTH_KEY&#039;, &#039;OeX&amp;gt;dl;tuRc$w+ehD{2]k%k{3uhH|L|8DNQu[/Np8_&amp;amp;qz_ rp7v+z6YODdjz9%~s&#039;);
define(&#039;LOGGED_IN_KEY&#039;,&nbsp;&nbsp; &#039;oOO1smvP?&amp;lt;4fSU0Sv,5yeT`z#ns5_I?tEEL9Y[|CW!YO@fkjw@</pre></pre></p>
<p><span style="font-size: x-large;">J</span>ust copy and then paste the secret keys over the ones in your wp-config.php file. Don&#8217;t worry about having to remember them, they are used by WordPress to encrypt information.</p>
</li>
</ol>
<p align="left"><a target="_blank" rel="nofollow" class="tt" href="http://twitter.com/home/?status=10+Steps+to+WordPress+Security+Protection+http://42359.th8.us" title="Post to Twitter"><img class="nothumb" src="http://www.the-web-mechanic.com/wp-content/plugins/tweet-this/icons/tt-twitter-micro4.png" alt="Post to Twitter" /></a> <a target="_blank" rel="nofollow" class="tt" href="http://delicious.com/post?url=http://www.the-web-mechanic.com/wordpress-security-protection/&amp;title=10+Steps+to+WordPress+Security+Protection" title="Post to Delicious"><img class="nothumb" src="http://www.the-web-mechanic.com/wp-content/plugins/tweet-this/icons/tt-delicious-micro4.png" alt="Post to Delicious" /></a> <a target="_blank" rel="nofollow" class="tt" href="http://digg.com/submit?url=http://www.the-web-mechanic.com/wordpress-security-protection/&amp;title=10+Steps+to+WordPress+Security+Protection" title="Post to Digg"><img class="nothumb" src="http://www.the-web-mechanic.com/wp-content/plugins/tweet-this/icons/tt-digg-micro4.png" alt="Post to Digg" /></a> <a target="_blank" rel="nofollow" class="tt" href="http://ping.fm/ref/?method=microblog&amp;title=10+Steps+to+WordPress+Security+Protection&amp;link=http://www.the-web-mechanic.com/wordpress-security-protection/" title="Post to Ping.fm"><img class="nothumb" src="http://www.the-web-mechanic.com/wp-content/plugins/tweet-this/icons/tt-ping-micro4.png" alt="Post to Ping.fm" /></a> <a target="_blank" rel="nofollow" class="tt" href="http://stumbleupon.com/submit?url=http://www.the-web-mechanic.com/wordpress-security-protection/&amp;title=10+Steps+to+WordPress+Security+Protection" title="Post to StumbleUpon"><img class="nothumb" src="http://www.the-web-mechanic.com/wp-content/plugins/tweet-this/icons/tt-su-micro4.png" alt="Post to StumbleUpon" /></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.the-web-mechanic.com/wordpress-security-protection/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>
