10 Steps to Secure Your WordPress Blog From Hackers

Publish date:
Image placeholder title

Today's guest post is from Triona Guidry, a computer consultant and freelance writer in the
northwest suburbs of Chicago. Her blog offers tech support for Windows and Mac, security alerts, and advice on blogs and social media.


Writers depend on blogs to promote their work, interact with readers,
and attract the attention of agents and publishers. But what if you
discover that all your links have been changed to porn sites, or that
your readers are being spammed?

You need to know how to protect your
blog, and what to do if it's hacked.

The following advice is geared
toward those running their own installations of WordPress, but also
applies to those hosting their blogs with WordPress, Blogger, or other

The main idea behind computer security is to avoid being the "low-hanging fruit," meaning that hackers are deterred and move on to easier targets.

1. Use strong, unique passwords, for your blog plus your other accounts.

You may groan at the idea of different passwords for every site, but ask
yourself whether you would rather remember passwords or deal with the
aftermath of being hacked. Passwords should be eight characters or more
and contain a mix of letters, numbers, and symbols. Try mnemonics like
substituting symbols for letters in words, or use a password generator.
But please don't rotate between the same two or three passwords, and
don't use common words with exclamation points at the end.

2. Post as "editor" instead of "administrator."
Editor accounts can
create, modify, and edit posts, but can't make changes to WordPress
itself. Create a new administrator account and disable access to the
default one to make it harder for hackers to infiltrate.

3. Keep WordPress up to date.
There will be a reminder on your Dashboard
if there is a new version available. Don't forget to update your plug-ins

4. If applicable to you: Keep your server's system software updated with the latest bug fixes
and patches, and don't run beta software.

If you want to test something,
create a server you can use for experimentation. Old computers are great
for this purpose.

5. Use the WordPress Exploit Scanner Plug-In.
It's a good idea to run this utility on a regular basis.

6. Never access WordPress from public wireless networks.
and their automated password-harvesting software often lurk there.
same advice goes for e-mail, Facebook, and especially your financial

7. Keep the computers on your network free of viruses.
The easiest way to
do this is to follow my four steps to computer security: a security
software suite, a firewall, strong unique passwords, and a method for
updating of your software including your applications (Microsoft Office,
Adobe Reader, Flash, etc) and your operating system (Windows or Mac).

If you
are using free antivirus, consider a paid version. I used to recommend
the freebies, but I've seen so many infections in my consulting business
that I decided they don't offer adequate protection anymore.

8. Make backups of your blog.
There are a number of WordPress plug-ins
that compress your blog files into an archive which can be stored on
your local computer.

9. Monitor your server's logs.
If someone is trying to get in, you may
find the first evidence here.

10. Moderate comments, and never approve spam comments.
To tell if a
comment is spam, look for poor grammar and punctuation, web sites that
don't match e-mail addresses, foreign languages, lengthy lists of links,
and comments on ancient posts. When in doubt, don't approve.

What if your blog has been hacked?
First, how do you know if your blog has been hacked? Usually your links have been
changed or posts appear you didn't create, that's a good indication. But
there may not be any visible signs, which is why monitoring is so

If you discover you've been hacked, here's how to rescue your

  • Change all passwords immediately, for WordPress and for the server
    itself. This won't get rid of any bad links or back doors, but it will
    give you time. You should also change your password for your e-mail
    account if someone has attempted to use the "reset password" page to
    commandeer your account.
  • Next, change your secret keys. Otherwise the hackers will be able to
    stay logged in even if you change your passwords, because their cookies
    will still be valid. You can find out how to do this in the WordPress
    Codex FAQ on what to do if you've been hacked.
  • Scan your computer for viruses and malware. There's no point in using
    a contaminated computer to fix a contaminated server.
  • If your WordPress server is hosted elsewhere, contact your provider.
    Other blogs on the same server may have been affected, and your provider
    can offer information and assistance.

While it's possible to clean up WordPress after it's been hijacked, it's
safer and easier to wipe WordPress, reinstall it, then restore your blog
from backup. If you choose not to do this, you need to check anywhere
hackers could have installed back doors: in your .htaccess file, in your
PHP scripts, and so forth. Again, the WordPress Codex has advice on what
to do. Be sure to download clean versions of your theme and plug-ins.
When WordPress is clean, change your passwords again. Finally, make
another backup of the cleaned blog and monitor your logs to look for
further hijack attempts.

If you make blog security part of your routine, like checking your
email, you can dismiss your worries and get back to your writing.

Additional Resources


Many thanks to Triona for this excellent advice on site security. Be sure to visit her blog.

If you're thinking of starting your own website, or would like information on how to improve your site/blog—from a content perspective, not a technical/security perspective—you'll want to check out the class that I am offering on April 7. Registration will soon appear here.

What Is a Pantser in Writing?

What Is a Pantser in Writing?

The world of storytelling can be broken into many categories and sub-categories, but one division is between pantser and plotter. Learn what a pantser means in writing and how they differ from plotters here.

Too Seen: The Intimacy of Copy Editing

Too Seen: The Intimacy of Copy Editing

Novelist A.E. Osworth discusses their experience working with a copyeditor for their novel We Are Watching Eliza Bright and how the experience made them feel Witnessed.

writer's digest wd presents

WD Presents: From Our Readers Announcement, Upcoming Webinars, and more!

This week, we’re excited to announce a call for From Our Readers submissions, a webinar on crafting expert query letters, and more!

April PAD Challenge

2021 April PAD Challenge: Day 11

Write a poem every day of April with the 2021 April Poem-A-Day Challenge. For today's prompt, write a prime number poem.

Stephanie Dray: On Writing Women's Legacies

Stephanie Dray: On Writing Women's Legacies

Bestselling and award-winning author Stephanie Dray shares how she selects the historical figures that she features in her novels and how she came to see the whole of her character's legacies.

From Script

Taking Note of the Structure of WandaVision and Breaking in Outside of Hollywood (From Script)

In this week’s round-up from ScriptMag.com, learn about the storytelling techniques used in the nine-part Disney+ series "WandaVision," outlining tips for writing a horror script, and breaking in outside of Hollywood as a writer and filmmaker.

April PAD Challenge

2021 April PAD Challenge: Day 10

Write a poem every day of April with the 2021 April Poem-A-Day Challenge. For today's prompt, write a get blank poem.

take two 3 mistakes writers make in act i

Take Two: 3 Mistakes Writers Make in Act I

Without a solid foundation, our stories flounder. Jeanne Veillette Bowerman shares insights into the three mistakes writers make when creating the first act.

David Jackson Ambrose: On Balancing Magic and Practicality

David Jackson Ambrose: On Balancing Magic and Practicality

Novelist David Jackson Ambrose discusses the initial themes he wanted to explore in his latest novel, A Blind Eye, what the editing process was like, and how his books always surprise him in the end.