Securing Your WordPress
In our two previous posts I talked about being hacked, what to do after if you site has be compromised and how to get cleared with Google if they have blocked visitors because of malware found on your site.
This post talks about how to make your WordPress as secure as possible.
WordPress has good security built in. Their team of devoted and very talented programmers are constantly working to stay ahead of the bad guys. Even so, being such a popular software makes it a target so it’s important to be proactive in keeping your WordPress as safe as possible.
Be Vigilant
You can’t phone up an alarm company and have them put in motion detectors, door and window strips, so what do you do? There are several things you can do and plug-ins you can install or have your web person help you with.
- check your site’s security for vulnerabilites
- lock down your site as best you can
- monitor changes to your site that you have not made
- scan your site for malicious files (discussed in our last two posts)
- and also scan for viruses
A plug-in to check your site’s security for vulnerabilities
Ultimate Security Check
http://wordpress.org/extend/plugins/ultimate-security-check/
This plug-in scans you site and makes recommendations then provides settings you can toggle on or off.
There are others plug-ins you can find and most require ‘settings’ decisions you might need help with. They generally have default settings you can safely apply without blowing up your site. But… There is never a guarantee you won’t encounter a problem because there are so many different web server configurations… So be careful! Always do a back-up first (another topic and another plug-in).
Lock down your site as best you can
Unless you are an advanced user, you will need help with this task and so I’m going to keep my explanation brief… Hackers often look for files and folders on your site with permission set to allow them to be edited. For example your footer file and other theme files. Removing ‘write’ permissions on these files will make it harder for hackers to inject code into your site. Explaining how to do this is beyond is beyond the scope of this post and if you don’t know how, we recommend you get help.
Locking down your theme files is a pain and not many folks go to this extreme but it does make your site more secure and you will have to judge yourself whether the extra work it causes is worth it.
This post is getting on the long side so I’ll stop here for now and discuss the other list items (above) another night…
Submitting your site for a review at Google Webmaster Tools
In our last post we wrote about a malware script we have been dealing with the past couple of weeks. That it was being injected into WordPress footer files and how to remove it.
If you find this quickly and deal with it, there is minimal impact to your site. But if you don’t discover it quickly, you could end up on Google’s ‘Attack Site’ list and they will block visitors from visiting your site.
Curious about your site’s health status? Google has a tool for checking to see if there are any problems with your site. Replace the last part of this link with your domain they will show you a report:
http://www.google.com/safebrowsing/diagnostic?site=yoursiteurl.com
Right now we’re going back to our topic for this post… How to submit your site to Google after you have cleaned up following a malware attack.
First thing you are going to need is an account at Google Webmaster Tools.
http://www.google.com/webmasters/tools/
Once you have an account set up, you will need to add a website. There’s a button for this prominently displayed on the index page. Click on it and you will be offered a field to enter your site url. I usually have this on my clip board ready to paste in.
Next they will require you verify ownership the site. There are several different methods offered. You can add a meta tag they provide or download an html file, which you then upload to your site. This fast and easy as long as you have an FTP program or web site authoring tool with file transfer set up. Explaining how to use these is beyond the scope of this post and if you don’t how to do this, you are someone who should have professional help.
Once you have uploaded the google html file or inserted the meta tag into your home page header, go back to the Google Webmaster tools page [still open I hope!] and hit the ‘verify site’ button.
There are various things you can look at in Webmaster Tools but we in there for a particular reason at the moment. We want to get our site pronounced healthy and open to visitors again. To do this, look for the ‘diagnostics’ link on the left side bar. Clicking will expand the menu. The ‘malware’ link take you to a page with an alert that your site is blocked. Here is where you will be able to submit your site and add a little message about what you have done to clean out the malware.
That’s all there is to it. It’s not hard but then we do this for a living. If you need help with this or something else on your site that is beyond your technical comfort level. Contact us!
Happy Trails,
Billy
PS - Next post we’ll talk about a few plug-ins to help with security.
Latest WordPress Malware Attacks
The bad guys have been busy this month!
Several of our clients had their WordPress blogs hacked. A malware Javascript was used to load bogus sites was injected into the page footers.
How can you tell if you have this problem on your WordPress site or blog?
This particular script, is easy to spot from how your site reacts even though it is not visible in the content. When you visit your site [or blog], instead landing at the top of the page where you would expect to start, the script immediately takes you to the bottom of the page instead. If it does this, then there is a strong likelihood you have this malware on your WordPress.
If you use Firefox for your web browser, you may get an ugly warning page that your site has been reported as an attack site. Not fun. You will not be able to access your site at all… anywhere. This can make it harder get to rid of the problem because you may not be able to access your site admin area. Internet Explorer did not block entry to the sites because of this particular malware.
What should you do if this has happened to your WordPress?
If you can access your WordPress admin area using your web browser, then it’s relatively easy to get rid of the malware script. This particular exploit only affects one file, named footer.php.
You can edit this by going to Appearance=>Themes=>Editor and opening this file in the editor pane. The files are all listed to the right hand side of the pane.
Now you edit the footer.php file to remove the script. It will look like this screenshot of the one we removed from several sites.
Select the entire script with your cursor being careful not to touch anything else. Delete it and save your changes. Your site is clean again.
WARNING: If you needed these instructions, you are not someone who should be doing this on your own and we so we wouldn’t normally recommend you even attempt this yourself. But it’s simple deletion so we thought we’d include it here. Even so, if there is any doubt in your mind about whether you should be doing this yourself, get help. If you don’t have a web person, contact us for help
If you are one of the unlucky ones who have been reported as an attack site, you will need to submit your site to Google for it to be declared clean otherwise visitors may not be able to access your site for some time.
It may be cleared without submitting it but it will definitely take much longer. Posting right away and each day for a few days will alert the search engines to spider your site and find a clean, malware free site.
Stay tuned for our next posts where we will discuss how to submit your site to Google Webmaster tools for review and what you can do make your WordPress more secure from this type of an attack.
Do Nothing - OR - Do Something Personally Or In Biz?
While working on a project today I was looking for motivational business quotes online and I found this quote from Oprah Winfrey:
“One of the biggest lessons I’ve learned recently is that when you don’t know what to do, you should do nothing until you figure out what to do because a lot of times you feel like you are pressed against the wall, and you’ve got to make a decision. You never have to do anything. Don’t know what to do? Do nothing.“
~ Oprah Winfrey
Now I admit I am not in any league to question Oprah’s statement but this one really touched something very deep in me so I wanted to give my view.
If there is anything I have discovered through my life, when it comes to personal and business decisions, is that it is better to make a decision — right or wrong — than no decision at all. Two points.
1. When you are trying to make a decision, whether personal or business, if you find that every move you make is blocked then it means you are moving in the wrong direction. It is better to rethink what you are doing. Put feelers out in different directions. If none work, just try a different direction.
2. If you are not being blocked, but still sitting on the fence and can’t move — paralyzed - it is better to jump off in some direction. If you make the right decision — terrific. If you make the wrong decision — you have learned something. But at least you did something.
Doing nothing achieves nothing in my opinion.


