• Skip to content
  • Skip to footer
A Bright Clear Web

A Bright Clear Web

A Bright Clear Web - Simple, effective, accessible websites

  • Home
  • About
  • Websites
  • Writing
  • Learn
  • Blog
  • Contact
You are here: Home / WordPress / Wordpress security basics: how to keep your site safe

WordPress security basics: how to keep your site safe

Posted: February 3, 2015 Updated: October 26, 2026 by Claire Brotherton
5 Comments

computer hacker

This is Day 2 in the 30 Day Blogging Challenge.  You can read Day 1’s post here.

computer hacker

With WordPress sites accounting for around a fifth of all websites, it comes as no surprise that WordPress has also become the target of hackers, spammers and other nefarious characters due to its popularity. If you run your own self-hosted WordPress site, if you’re not careful, you can fall victim to attack. No website is impenetrable, but here are some steps that you can take to minimise the risk.

1. Never use “admin” as the username of your administrator account

This is the most basic rule in the book and unfortunately, it’s still one that many people get wrong. It’s a bad thing to do because the username and password you use for your site are the keys to your WordPress kingdom, and if you choose a really easy to guess username, then all that someone has to do to get into your account is to guess your password – see point 2 below.

If you have made this mistake, the easiest way to correct it is to:

  1. Go to Users > Add New.
  2. Make a new user account with another username – the less guessable the better.
  3. Use an email address that you have access to (if you want, you can have the password emailed to this address).
  4. Assign it the administrator role.
  5. Log out of your site and log in as the new user.
  6. in Users > All Users, delete the admin user. Make sure when you do this that you choose the option to attribute all content to the new user, or you will lose any posts or pages created by that user.

2. Make sure your administrator account has a strong password

As with your username, you can compromise your site security if your password is too short or too obvious.

Check this list of the most common passwords of 2026 – if you are using any such as “123456”, “admin” or “12345678”, change them now!

For password length, you should be using passwords of 16 characters or more. Try out your password in the How Secure Is My Password? tool to see how strong it is. You might be surprised how quickly it can be cracked.

A 16 character password would take 41 trillion years to crack
A 16 character password would take 41 trillion years to crack

Make a mnemonic to remember your password, or use a random password generator such as the Dashlane password generator. You can also use a password manager to remember all your website passwords for you. You just have to remember one master password to access all the sites you log into.

WordPress will let you know whether your password is weak, medium or strong when you type one in.

3. Keep WordPress, your plugins and themes up to date

plug-and-socket

This is really important too. WordPress is continually being updated – this includes patching security holes. An outdated installation is more vulnerable as it will have older code that could be exploited. The same is true of any plugins and themes that you use.

If you have a plugin or theme you installed but no longer use on your site, you are best to delete it, as the plugin files can have malicious code injected into them.

It is, however, a good idea to keep one of the default WordPress.org themes on your site (e.g. Twenty Twenty Five). If you have a WordPress problem that may be theme-related, you can switch to a default theme. If the difficulty is resolved, this lets you know it is an issue with your theme and not some other aspect of WordPress.

4. Get your plugins and themes from a reputable source

It may be tempting to download a free theme or plugin from an unknown site, but they are not always safe to use. The Sucuri blog warns of the danger of installing a “free” version of a premium plugin, which may have been doctored to infect your website.

Decent theme and plugin authors will add their works to the WordPress.org site, where they can be reviewed by others. Well-known theme manufacturers such as StudioPress, Elegant Themes and Brainstorm Force are also fine.

5. Use an anti-spam comment plugin

If you don’t run a blog on your site, this is not an issue. If you do, and you want people to comment on it, you really need anti-comment spam protection. Otherwise you may find yourself quickly overrun with spam comments.

Firstly, make sure that you have optimal comment settings set.

Akismet spam showing site thumbnail
Akismet spam showing site thumbnail

To block spam, you can use the Akismet plugin – the plugin comes free with a WordPress install. To use it, you need to subscribe to their online service at Aksimet.com and get an API key. Subscription is free for personal bloggers and nonprofit organisations, though you can leave a donation. For a single commercial site it costs £8.95/month, or £41.95/month for unlimited sites.

A free alternative is the Antispam Bee plugin.

Remember that these plugins will mark comments as spam, but you have to manually delete them. Occasionally they will miss the odd spam comment, and may mark a genuine comment as spam, so you have to remain vigilant.

A final possibility is to use an external commenting system such as Disqus instead of the native WordPress comments. Read more about the pros and cons of an external comment service vs WordPress comments.

And finally…

You can never guarantee WordPress security 100%, but you can bolt the door to slow down intrusions. Just remember not to leave the keys in it!

Please leave a comment if you found this article helpful, or if you have any other security tips you’d like to share.

Related

Category: WordPress Tags: 30 day blogging challenge, comment spam, passwords, security

About Claire Brotherton

Freelance web designer and front end developer based in Edinburgh, Scotland. I love WordPress, code, learning and blogging.

Reader Interactions

Comments

  1. Sarah Arrow says

    February 3, 2015 at 6:45 pm

    I’m a strictly GASP fan. I’ve tried everything else for spam, but there’s nothing better than the GASP, I use it as part of Comment Luv Premium which is one of my favourite plugins.

    Reply
  2. Claire Brotherton says

    February 4, 2015 at 5:18 pm

    The Comment Luv plugin looks pretty awesome, Sarah. I’ll have to check that one out.

    Reply
  3. Lindsey John says

    October 8, 2024 at 10:18 am

    Great tips on WordPress security basics! I love the emphasis on using strong passwords and keeping everything updated. It’s so important to source themes and plugins from trusted providers to minimize vulnerabilities. A solid foundation in these practices is key to keeping your site safe.

    Reply
    • Claire Brotherton says

      November 22, 2024 at 12:15 pm

      Thank you, Lindsey!

      Reply
  4. Taha says

    October 15, 2025 at 3:15 pm

    Pointing out that WordPress core, themes, and plugins must be kept up to date is essential many attacks exploit outdated components.

    Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

To filter spam, your comment and the name, email and website you enter are sent to an external AI service for analysis.

Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email. Read my privacy policy.

potted cactus and laptop with code

Footer

Categories

  • Accessibility
  • Blogging & Content Marketing
  • Business
  • Personal
  • Software & Tech
  • Websites
  • WordPress

Top Posts

  • How To Create WordPress Excerpts And Include Links In Them
  • How To Solve WordPress Image Alignment And Text-Wrap Problems
  • Improve Your Divi Website's Reach With Divi Accessibility
  • How To Set Up And Customize Twenty Nineteen Theme
  • Registering a Domain Name with GoDaddy - Step by Step

Let’s Be Social

  • E-mail
  • Facebook
  • LinkedIn
  • Twitter
Copyright © 2014 -2026 A Bright Clear Web
  • Privacy and cookies policy
  • Site map