<?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>Using Wordpress &#187; secure wordpress</title> <atom:link href="http://www.usingwp.com/category/secure-wordpress/feed/" rel="self" type="application/rss+xml" /><link>http://www.usingwp.com</link> <description>Learn How to Use Wordpress For Fame and Fortune!</description> <lastBuildDate>Mon, 19 Jul 2010 04:03:35 +0000</lastBuildDate> <generator>http://wordpress.org/?v=2.9.2</generator> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <item><title>Secure Wordpress From Hackers &#8211; Part 2</title><link>http://www.usingwp.com/secure-wordpress/secure-wordpress-from-hackers-part-2/</link> <comments>http://www.usingwp.com/secure-wordpress/secure-wordpress-from-hackers-part-2/#comments</comments> <pubDate>Thu, 09 Jul 2009 14:53:29 +0000</pubDate> <dc:creator>fthomas</dc:creator> <category><![CDATA[secure wordpress]]></category> <category><![CDATA[securing wordpress]]></category> <category><![CDATA[seure wordpress from hackers]]></category><guid
isPermaLink="false">http://www.usingwp.com/secure-wordpress/secure-wordpress-from-hackers-part-2/</guid> <description><![CDATA[You need to be proactive when working with wordpress. You need to secure wordpress from hackers. Now, it also doesn't have to be hard either.]]></description> <content:encoded><![CDATA[<p></p><div
class="tweetmeme_button" style="float: left; margin-right: 10px;"> <a
href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.usingwp.com%2Fsecure-wordpress%2Fsecure-wordpress-from-hackers-part-2%2F"><br
/> <img
src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.usingwp.com%2Fsecure-wordpress%2Fsecure-wordpress-from-hackers-part-2%2F&amp;source=fthomas137&amp;style=normal" height="61" width="50" /><br
/> </a></div><p>In part one of this series, ‘<a
href="http://www.usingwp.com/secure-wordpress/secure-wordpress-from-hackers/" target="_blank">Secure Wordpress From Hackers</a>’, we took a quick look at two techniques to completely stop individuals who have a desire to mess up your Wordpress blog installation.</p><p>It is simple, but simple is always good. First, have good passwords. Second, back it up baby. As I mentioned this two punch technique works very well.</p><p>But what about protecting your wordpress installation before a hacker can get in? I know that there are a lot of smart individuals out there and the first step to hacking someone is investigation.</p><p>During investigation, it all comes down to finding where the weak spots are. I recently investigated another person’s wordpress install that was completely defaced. The defacer found a yet undiscovered door in one of the owner’s plugins.</p><p>This all comes down to having the ability to be able to browse a person’s wordpress installation. To be honest, I’m guilty of snooping into other peoples’ wordpress sites, not to hurt the owner, but to find out what theme or what plugins that person is using.</p><p>Some of my best discovers have been when I see something I really like and I peek behind the curtain to see the strings being pulled. Now, there is nothing wrong with this, but as I mentioned in the beginning, this is also an excellent starting point for hackers.</p><p>So, what do I mean by all of this?</p><p><img
style="border-bottom: 0px; border-left: 0px; margin: 0px 0px 10px 10px; display: inline; border-top: 0px; border-right: 0px" title="secure wordpress from hackers - directory structure" border="0" alt="secure wordpress from hackers - directory structure" align="right" src="http://www.usingwp.com/wp-content/uploads/2009/07/image11.png" width="260" height="256" /> Wordpress has a pretty standard directory structure that hasn’t changed too much between updates. This is a good thing, if you wish to take advantage of things like automatic upgrades.</p><p>But the directory I’m going to zero in on today, is the directory ‘wp-content’. As you can see, it contains two directories, in particular, ‘plugins’ and ‘themes’ that can be strong venerability point.</p><p>Why, simple. The contents of these two directories contain code that is completely out of the hands of the original wordpress developers.</p><p>This is actually a big thing. The original developers of wordpress really don’t have any say on how add-ons to wordpress should actually work.</p><p>There is a recommended framework in place, but that doesn’t mean that it’s followed. In many ways, this is where we can get into trouble. Let me offer you an example.</p><p>I was cruising a site, just recently and was interested how the author had created their unique menu structure. So, I performed a simple change of address in my web browser to change the address from :</p><blockquote><p>http://www.the-site-in-question.com/</p></blockquote><p>To:</p><blockquote><p>http://www.the-site-in-question.com/<strong>wp-content/plugins/</strong></p></blockquote><p>(Now, please don’t try to go to this site, it doesn’t exist.)</p><p>Let’s see what we find:</p><p><a
href="http://www.usingwp.com/wp-content/uploads/2009/07/image12.png"><img
style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="http://www.usingwp.com/wp-content/uploads/2009/07/image_thumb5.png" width="460" height="291" /></a></p><p>Very interesting. Here is a complete list of what plugins this site uses. Now, if I was trying to hack this person’s site, I would now start to investigate all the plugin directories listed to see if any had any security holes.</p><p>Second I could look into the themes directory, much like the plugins directory.</p><p>Do you see what I’m getting at? This can take a sinister tone pretty quickly in the wrong hands.</p><p>Well, fortunately, it’s very easy to plug this security hole. Stop from allowing the directory from being listed! There are a couple of ways to accomplish this.</p><ol><li>Put a blank index.html file in every directory you wish to protect. The idea is if someone goes to that directory, the web server, in most cases would just automatically load the blank web page instead of the directory contents.</li><li>Ask you web hosting agent to disable directory listings for your website. Easier said then done.</li><li>Modify the pre-existing .htaccess file to disallow directory listings. This is what I recommend, because it’s the simplest.</li></ol><p>You will need to access the .htaccess file that is sitting in you /public_html folder on your hosting agent’s servers. (I’m making the assumption that you are running a hosting agent that runs CPanel.)</p><p>It may or maynot be there. But the idea will be to add the following lines of code on the bottom of this file:</p><blockquote><p>&lt;Files .htaccess&gt; <br
/>order allow,deny <br
/>deny from all <br
/>&lt;/Files&gt; <br
/>IndexIgnore * <br
/>DirectoryIndex index.php</p></blockquote><p>Now, this addition to the .htaccess file will do the following things for you:</p><ul><li>Stop anyone from accessing your .htaccess file</li><li>Tell the web server to not do directory listings</li><li>Always only display the file, index.php as a default web page</li></ul><p>The last point, setting the default web page, is important too. I had a bunch of websites defaced by a group of hackers that simply broke in through a brute force ftp attack and then put up their webpage, ‘index.html’ in all of my directories.</p><p>Out of the box, most web servers will display a index.html page before index.php! Guess what your wordpress uses? index.php.</p><p>So, it’s a small thing, but simple to protect against.</p><p>In conclusion, we looked at how to protect your website from hackers by stopping them from actually being able to look at what we’ve loaded and are running. As mentioned, stopping hackers from seeing what you are running, makes it much harder for them to find a way to compromise to your setup.</p><p>This was part 2 of <u>Secure Wordpress From Hackers</u>. I hope you enjoyed it!</p> ]]></content:encoded> <wfw:commentRss>http://www.usingwp.com/secure-wordpress/secure-wordpress-from-hackers-part-2/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Backup Your Wordpress Installation</title><link>http://www.usingwp.com/secure-wordpress/backup-your-wordpress-installation/</link> <comments>http://www.usingwp.com/secure-wordpress/backup-your-wordpress-installation/#comments</comments> <pubDate>Tue, 07 Jul 2009 18:59:42 +0000</pubDate> <dc:creator>fthomas</dc:creator> <category><![CDATA[secure wordpress]]></category> <category><![CDATA[backup wordpress]]></category><guid
isPermaLink="false">http://www.usingwp.com/secure-wordpress/backup-your-wordpress-installation/</guid> <description><![CDATA[You need to make sure that you can backup wordpress. You never know when your files will become damaged or worse, defaced by hackers. This method described here is a one sure method of protecting your wordpress installations easily and simply.]]></description> <content:encoded><![CDATA[<p></p><div
class="tweetmeme_button" style="float: left; margin-right: 10px;"> <a
href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.usingwp.com%2Fsecure-wordpress%2Fbackup-your-wordpress-installation%2F"><br
/> <img
src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.usingwp.com%2Fsecure-wordpress%2Fbackup-your-wordpress-installation%2F&amp;source=fthomas137&amp;style=normal" height="61" width="50" /><br
/> </a></div><p>There are some really great plugins for backing up your wordpress installation, but I’m not interested in that for this article. What I’m interested in presenting is a way to backup your complete set of websites in one swoop.</p><p>Best thing is, if you follow the following directions, you will never have to worry about a hosting agent going strange on you and holding your websites captive. Don’t laugh, I’ve had it happen. One hosting agent, who will remain nameless, went offline for almost two weeks. My sites went with it.</p><p>Fortunately, I had backups of my sites and was able to send them to another hosting agent and within hours my sites were backup up. This is the type of backups you want to have!</p><p>Another good thing about having backups is if your sites are defaced, you can easily recover them from your last good backup. No muss, no fuss!</p><p>Let’s get started. First off, you will need to select a hosting agent that support the CPanel software interface system. Here are two recommendations if you are stuck. I’ve used both and they are both excellent, <a
href="http://www.usingwp.com/resources/hostgator/" target="_blank">Hostgator</a> and <a
href="http://www.usingwp.com/resources/scalahosting/" target="_blank">Scala Hosting</a>.</p><p>I will be writing the remainder of this article, assuming that you are running with an agent that supports CPanel.</p><p>Once you’ve logged into your CPanel interface, there is a section named ‘Files’. Under here you will see an icon called, ‘Backups’.</p><p><img
style="border-bottom: 0px; border-left: 0px; display: block; float: none; margin-left: auto; border-top: 0px; margin-right: auto; border-right: 0px" title="CPanel Backup" src="http://www.usingwp.com/wp-content/uploads/2009/07/image1.png" border="0" alt="CPanel Backup" width="460" height="200" /></p><p>Just a quick sidenote. You need to ensure you have enough disk space to store your backup locally on your web hosting agent. Normally, you will need as much space as you’ve already used. So, if you have a disk quota, you need to make sure you stay under 50% with normal use.</p><p>Once you select ‘Backups’, you’ll be presented with the following screen. It looks a bit daunting, but no worries. We’ll be selecting the easiest option, ‘Download or Generate a Full Web Site Backup’.</p><p><img
style="border-bottom: 0px; border-left: 0px; display: block; float: none; margin-left: auto; border-top: 0px; margin-right: auto; border-right: 0px" title="CPanel Full Backup" src="http://www.usingwp.com/wp-content/uploads/2009/07/image2.png" border="0" alt="CPanel Full Backup" width="428" height="338" /></p><p>Nice thing about this type of back is that it backs up everything. This includes all your specialty settings, email, email accounts, subdomains. Everything that is part of your CPanel interface. With this backup in hand, you can transfer it to a new or your current provider for a fast restoration.</p><p>Once you select this option, you’ll be provided with more options.</p><p><img
style="border-bottom: 0px; border-left: 0px; display: block; float: none; margin-left: auto; border-top: 0px; margin-right: auto; border-right: 0px" title="CPanel Backup Options" src="http://www.usingwp.com/wp-content/uploads/2009/07/image3.png" border="0" alt="CPanel Backup Options" width="460" height="361" /></p><p>Here you’ll select ‘Home Directory’ for Backup Destination and insert your email address. The system should notify you once you’re backup is completed.</p><p>Finally, click on the button ‘Generate Backup’.</p><p>You should be presented with a message, stating much to the effect of what I just said.</p><p><a
href="http://www.usingwp.com/wp-content/uploads/2009/07/image4.png"><img
style="border-bottom: 0px; border-left: 0px; display: block; float: none; margin-left: auto; border-top: 0px; margin-right: auto; border-right: 0px" title="image" src="http://www.usingwp.com/wp-content/uploads/2009/07/image_thumb1.png" border="0" alt="image" width="460" height="75" /></a></p><p>Ok, now you just have to wait it out. The backup could take several minutes to several hours to complete. Once completed, you should receive an email.</p><p>Once the backup is completed, it a simple matter of connecting to your web hosting agent with your favorite ftp program and download the backup to your personal desktop. Make sure, once you have a successful download, delete the backup that is sitting on your hosting agent.</p><p>And that’s how you perform a backup that’s not only <em>backup wordpress</em>, but your enter websites that is 100% transferrable from your CPanel web hosting agent. Remember this only works with hosting agent that support CPanel. Here again are my two recommendations: <a
href="http://www.usingwp.com/resources/hostgator/" target="_blank">Hostgator</a> and <a
href="http://www.usingwp.com/resources/scalahosting/" target="_blank">Scala Hosting</a>. Cheers!</p> ]]></content:encoded> <wfw:commentRss>http://www.usingwp.com/secure-wordpress/backup-your-wordpress-installation/feed/</wfw:commentRss> <slash:comments>1</slash:comments> </item> <item><title>Secure Wordpress From Hackers</title><link>http://www.usingwp.com/secure-wordpress/secure-wordpress-from-hackers/</link> <comments>http://www.usingwp.com/secure-wordpress/secure-wordpress-from-hackers/#comments</comments> <pubDate>Tue, 07 Jul 2009 16:53:34 +0000</pubDate> <dc:creator>fthomas</dc:creator> <category><![CDATA[secure wordpress]]></category> <category><![CDATA[how to secure wordpress]]></category> <category><![CDATA[securing wordpress]]></category><guid
isPermaLink="false">http://www.usingwp.com/secure-wordpress/secure-wordpress-from-hackers/</guid> <description><![CDATA[Securing wordpress is an important step to take if you'd like to keep your site from being hacked by others. Stop other from ruining your hard work today!]]></description> <content:encoded><![CDATA[<p></p><div
class="tweetmeme_button" style="float: left; margin-right: 10px;"> <a
href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.usingwp.com%2Fsecure-wordpress%2Fsecure-wordpress-from-hackers%2F"><br
/> <img
src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.usingwp.com%2Fsecure-wordpress%2Fsecure-wordpress-from-hackers%2F&amp;source=fthomas137&amp;style=normal" height="61" width="50" /><br
/> </a></div><p>Securing wordpress seems to be more rumor and guesswork than fact on the Internet. I’ve purchased a couple of security guides over the past year and have been quite surprised how useless they really were.</p><p>More useless because they were not ‘reasonable’. One of the guides, basically recommended tossing out the baby with the bath water. Their suggestions worked, but in the process, it broken more then it protected.</p><p>Well, let me save you $40 and tell you some very simple steps to protect yourself from hackers who enjoy defacing your hard work.</p><h2>Your Hosting Agent</h2><p>The first place to secure your wordpress installation is not with wordpress but with your hosting agent. I always recommend choosing a host that supports the use of the Cpanel software suite. Not for security, but for ease of use and portability.</p><p>With that said, I’m going to assume for the rest of this guide, that you are using a hosting agent that uses Cpanel. If you are stuck and need a recommendation, here are two very good hosting agents. <a
href="http://www.usingwp.com/resources/hostgator/" target="_blank">Hostgator</a> and <a
href="http://www.usingwp.com/resources/scalahosting/" target="_blank">Scala Hosting</a>.</p><p>I’ve used both and I personally do prefer <a
href="http://www.usingwp.com/resources/scalahosting/" target="_blank">Scala Hosting</a>. They are a little smaller then <a
href="http://www.usingwp.com/resources/hostgator/" target="_blank">Hostgator</a> and do provide slightly better technical support, but that’s my personal opinion. But both are good. Enough diversion, back to securing wordpress!</p><p>The first and foremost thing you must learn to do to secure your wordpress installation is to learn to back it up. This is the most important task you can perform. No hacker on the planet can break the backup you store on your personal computer hard drive. And it’s a snap for your hosting agent to restore your complete site from a cpanel backup.</p><p>If you want more information about backups, here a link to <a
href="http://www.usingwp.com/secure-wordpress/backup-your-wordpress-installation/" target="_blank">backup wordpress</a>.</p><h2>Securing FTP</h2><p>Probably the biggest security risk will be your laziness. Sorry for sounding rash, but when you need to upload files to your hosting agent, you must have a username and password. And cpanel doesn’t help as it wants you to create a new ftp username and password per add-on domain.</p><p>When you select a username and password, use the cpanel’s ability to help you by choosing a random and complex password for your ftp username.</p><p><a
href="http://www.usingwp.com/wp-content/uploads/2009/07/image.png"><img
style="border-bottom: 0px; border-left: 0px; margin: 10px auto; display: block; float: none; border-top: 0px; border-right: 0px" title="securing wordpress" src="http://www.usingwp.com/wp-content/uploads/2009/07/image_thumb.png" border="0" alt="securing wordpress" width="420" height="219" /></a>Above you’ll see a I’m in the subpanel titled ‘Create an Add-on Domain’. You can click on the picture to see it full size.</p><p>You can use the ‘Generate Password’ feature that will bring up the second box to the lower right quadrant. In it, I changed the default password length from 12 to 20. Then you simply click on the ‘Regenerate’ button and the ‘Use password’ button.</p><p>Now, I warn to make sure you make record of this password! It is completely random and very complex.</p><p>Now why do through all this grief? Simple, I like many other people have been defaced by the simplest trick in the book. The proposed hacker who hacked some of my sites tried one password after another until they discovered my password.</p><p>Now, my passwords back then were not simple but not this complex either. After talking with the hosting agent, after having to rebuild 33 sites, (yes I like to learn the hard way), they informed me that they had seen a ton of ftp traffic for about 6 weeks before the defacing.</p><p>Performing this very simple step of creating extremely complex passwords can easily protect you and coupled with backups, it’s a sure fire 2 punch to the bad boys who would like to ruin your day!</p><p>I’ll be taking a deeper look at securing wordpress in my next article titled part 2 of this series. There I’ll be looking at some web techniques to keep prying eyes out of your directories so wanna be hackers cannot find what you are running in wordpress and further exploit security holes!</p><p>Stay tuned.</p> ]]></content:encoded> <wfw:commentRss>http://www.usingwp.com/secure-wordpress/secure-wordpress-from-hackers/feed/</wfw:commentRss> <slash:comments>1</slash:comments> </item> <item><title>Wordpress Redirect Hack</title><link>http://www.usingwp.com/secure-wordpress/wordpress-redirect-hack/</link> <comments>http://www.usingwp.com/secure-wordpress/wordpress-redirect-hack/#comments</comments> <pubDate>Thu, 26 Mar 2009 17:10:09 +0000</pubDate> <dc:creator>fthomas</dc:creator> <category><![CDATA[secure wordpress]]></category><guid
isPermaLink="false">http://www.usingwp.com/wordpress-redirect-hack/</guid> <description><![CDATA[
It’s recently become evident to me that the hackers are starting to look at plugin code to try and compromise your wordpress installation. One possible hack is with the wordpress redirect plugin.
I’ve been corresponding to a fellow wp’er, and some of his wordpress installations have started to ‘redirect’ to pages outside of his site, [...]]]></description> <content:encoded><![CDATA[<p></p><div
class="tweetmeme_button" style="float: left; margin-right: 10px;"> <a
href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.usingwp.com%2Fsecure-wordpress%2Fwordpress-redirect-hack%2F"><br
/> <img
src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.usingwp.com%2Fsecure-wordpress%2Fwordpress-redirect-hack%2F&amp;source=fthomas137&amp;style=normal" height="61" width="50" /><br
/> </a></div><p>It’s recently become evident to me that the hackers are starting to look at plugin code to try and compromise your wordpress installation. One possible hack is with the <u>wordpress redirect plugin</u>.</p><p>I’ve been corresponding to a fellow wp’er, and some of his wordpress installations have started to ‘redirect’ to pages outside of his site, instead of pages and posts within his site.</p><p>It immediately sounded like a redirect problem, so out of speculation, I suggested that he take a look at his redirect plugin. Sure enough, seems that part of the hacking that occurred on his site centers around manipulation of the redirect plugin.</p><p>I don’t yet know that full scope of this, but I do know that there may be an easy fix for this issue. If you go into your admin panel and look for the ‘redirection’ under ‘Tools’,</p><p><a
href="http://www.usingwp.com/wp-content/uploads/2009/03/image.png"><img
title="image" style="border-right: 0px; border-top: 0px; display: block; float: none; margin-left: auto; border-left: 0px; margin-right: auto; border-bottom: 0px" height="240" alt="image" src="http://www.usingwp.com/wp-content/uploads/2009/03/image-thumb.png" width="146" border="0" /></a>Select this, and you will be presented with this page, here select under ‘Redirections for group’, ‘options’:</p><p><a
href="http://www.usingwp.com/wp-content/uploads/2009/03/image1.png"><img
title="image" style="border-right: 0px; border-top: 0px; display: block; float: none; margin-left: auto; border-left: 0px; margin-right: auto; border-bottom: 0px" height="137" alt="image" src="http://www.usingwp.com/wp-content/uploads/2009/03/image-thumb1.png" width="240" border="0" /></a>Once you select, Options, you’ll go down the page and near the bottom you’ll see the following:</p><p><a
href="http://www.usingwp.com/wp-content/uploads/2009/03/image2.png"><img
title="image" style="border-right: 0px; border-top: 0px; display: block; float: none; margin-left: auto; border-left: 0px; margin-right: auto; border-bottom: 0px" height="124" alt="image" src="http://www.usingwp.com/wp-content/uploads/2009/03/image-thumb2.png" width="240" border="0" /></a>Click on the ‘Delete’. Be forewarned that you keep a record of any static redirects you’ve entered into the redirect module. It will remove all of these too! You’ll have to re-enter any manual redirects that you’ve created after deleting all links.</p><p>Now, you will be asked to confirm the deletion and after the redirect plugin will be cleaned and disabled. You will need to re-enable the plugin after.</p><p>I’m pretty sure that this will rectify the <strong>wordpress redirect hack</strong> but I still need to confirm this information.</p><p>If you encounter this problem and have more info, please comment below!&#160;&#160;</p> ]]></content:encoded> <wfw:commentRss>http://www.usingwp.com/secure-wordpress/wordpress-redirect-hack/feed/</wfw:commentRss> <slash:comments>4</slash:comments> </item> </channel> </rss>
<!-- Served from: www.usingwp.com @ 2010-07-31 06:58:59 by W3 Total Cache -->