Do you prefer video?
You’ve probably heard that WordPress is the most famous publishing platform that runs over 36% of the web. But you might not know that it’s also a favorite target for all sorts of maleficent attacks.
Most of the new WordPress installs can be easily accessed by anyone just by typing /wp-admin behind the URL of your website and by default, the username is admin. So, the only thing that stands between your content and the attacker is your password. That’s quite scary, right?
Now, if you consider that most people still use silly passwords like their names or birth dates, there’s no wonder that thousands of WordPress websites got hacked each year.
On top of that, a lot of WordPress websites are still delivered through the old and insecure HTTP protocol. Not only that this hurts the Google search rating, but it makes the connection between your website and your customers vulnerable. Anyone can listen to such communication and steal passwords or credit card information.
In this article, I will show you how to easily secure your WordPress website with free tools and make it much harder for the attacker to hack it. You’ll also learn how to quickly move your website from HTTP to secure HTTPS protocol without paying for expensive certificates.
Disclosure: Please note that some of the links in this post are affiliate links for products I use and love. This means if you click on such a link and take action (like subscribe, or make a purchase), I may receive some coffee money at no extra cost to you. This helps me creating more content free of charge to you. And, as an Amazon Associate, I earn from qualifying purchases. Thanks for your support!
Get even more help with my free courses!
1. Mastering WordPress
Whether you’re building a blog, personal portfolio, a landing page for your company, or maybe even an online store, in this course, I will teach you all the fundamentals of WordPress so you can start building your own website today.
Each lesson builds on concepts and skills from the previous one and by the end of this course, you’ll know how to install and manage your own WordPress website.
You’ll learn everything you need about the difference between posts and pages, categories and tags, plugins, themes, and widgets.
I will show you how to secure your WordPress website with Two-Step Authentication, how to create a beautiful contact form for your readers, how to install and customize themes.
What you will learn
- What is WordPress
- How to use admin dashboard
- What’s the difference between posts and pages
- How to use Gutenberg, a new block-based editor
- How to work with images
- How to create text links and buttons
- How to work with file attachments
- How to add video and audio files to posts and pages
- How to use featured image properly
- What’s the difference between categories and tags
- What publishing options WordPress offers
- How to edit existing posts and pages
- How to create and edit navigation menu
- How to work with Customizer
- How to use widgets
- How to change blog layout
- How to install and customize GeneratePress theme
- How to install Genesis Framework
- How to install Newspaper theme
- How to use plugins
- How to use comments
- How to manage WordPress users
- How to work with general settings
Who is this course for?
- Absolute beginners who want to learn how to create their own website with WordPress
- Seasoned WordPress users who want to learn how to work with Gutenberg editor
What do you need?
- You don’t need any prior experience with WordPress
- You don’t need to know any programming language
- You just need a computer with a web browser and internet connection
Enroll now for free!
Mastering WordPress course is available on Skillshare. If you’re new to Skillshare, you’ll get this course for free, and on top of that, you’ll get 14 days of Premium Membership which includes access to the whole library of premium learning material available on Skillshare. You can cancel anytime during those 14 days and you won’t be charged anything.
2. How to Start a WordPress Blog in 7 Days
Now, I perfectly understand that setting up your first blog might be quite a frightening job, especially if you’re not tech-savvy. If you need some more guidance, here’s my free master course. I wanted to spread everything into a short series of lessons that you can take on a daily basis. On top of that, this course goes into much more details than this article.
While you’ll be definitely able to start your blog by reading this article, in my free master course, you’ll learn how to grow it and start making money. Throughout this 7-day course, you’ll learn everything you need without time-consuming research on the Internet and YouTube.
Do you want to learn how to start your WordPress blog in just a week? Enter your email address and first name and you’ll get instant access to my popular course for free!
You will learn:
- How to register the best domain name
- How to choose the best web hosting
- How to install and customize a theme to make your blog unique
- How to secure your blog against hackers
- How to get SSL/TLS certificate for free
- How to start writing content on a regular basis
- How to drive traffic to your blog
- How to monetize your blog with affiliate marketing, books, and online courses
Let’s start with Cloudflare. It’s a free service available at cloudflare.com. Create a new account and add the name of your website, that’s todaywp.com in my case.
Select the Free plan which is ideal for personal websites and blogs and let Cloudflare scan your site for DNS records.
Once it’s done, you should see something similar.
If you’re not familiar with DNS records, ask somebody for help, but it’s actually quite easy to understand. You should have at least one A record that points your domain name to unique IP address.
You don’t need to change anything here, just click the Continue button.
Now, to let Cloudflare manage your DNS records and optimize your sites, you need to point your domain’s nameservers to Cloudflare’s nameservers.
Depending on your domain registrar, the whole process might look quite different, but if your domain is registered with some of the popular registrars, like GoDaddy in my case, Cloudflare will offer you a nice step by step guide how to do it.
So, I’ll just go to my GoDaddy account, select DNS next to the domain name and scroll down to the Nameservers section.
Here, I’ll click the Change button delete three of five records and change the two records as instructed on Cloudflare page. So, the first one is aron.ns.cloudflare.com and the second one is james.ns.cloudflare.com.
That’s it. So I can save the changes. Now, it might take a while before these changes get propagated through the Internet. Depending on your registrar, it takes even 24 to 48 hours, but it’s usually much faster.
You can re-check whether your domain points to Cloudflare if you want, but you’ll be notified by email once your site becomes active.
Once it’s done, you’ll see the message that your site is protected by Cloudflare.
Go to the SSL/TLS section and make sure that you have a Full certificate selected.
You can also check the DNS section to see your DNS records are proxied by Cloudflare and that your Nameservers are indeed those you set with your registrar.
Great job! Now, navigate to your website and check that your website is served via HTTPS protocol.
The default user
Now that we have secured our communication, let’s secure our WordPress administration as well.
The first thing you want to do is to change the default admin user. Unfortunately, you can’t rename the user account in WordPress, but you can delete it and create a new one instead.
Sign-in to the administration area of your WordPress, go to Users -> All Users, click the Add New button at the top and fill out the form.
There’s no need to use any meaningful username, the less obvious it is, the better! I’ll just use my email firstname.lastname@example.org for this demonstration, but you can choose whatever you want.
Your email, first and last name and even website should be real, and don’t forget to use some strong, hard-to-guess password. You can choose whether you want to send the new user an email about their new account. I won’t send it in this case.
Make sure that the Role of the user is set to Administrator, so this new user has access to everything. Once you’re done, hit the Add New User button at the bottom of the page.
Now, you should see two users in the list, the default admin user and your newly-created user, both are Administrators.
Logout the admin user and sign in again, but this time with your new user instead.
Go back to the list of all users and point your mouse to the row with the admin user to reveal the Delete button.
Click it and decide whether you want to delete all the content owned by the admin user or attribute it to the new user. Finally, confirm the deletion of the admin user.
And it’s gone!
That’s it! Now you’re no longer able to sign-in with the admin user and the attacker have no idea what is the username of the Administrator account, especially if you’ve opted for something non-sensical which is not connected to you in any meaningful way.
The next step to secure your WordPress is enabling the so called 2FA. This means that it’s not enough to know the username and password to get to the administration of your site. You also need to enter a special, one-time code which is unique and valid for only a short period of time, typically only for a couple of seconds.
This way, even if the attacker guessed your administrator username and password, he’s still out of luck without this unique code.
You can use one of many plugins to enable this feature for your WordPress website, but I suggest you go one step further by connecting your WordPress installation to the official WordPress.com website and disable the default login form altogether. This means that the only way to access your administration area will be through the secured WordPress.comaccount.
Let’s see how to do this.
Go to Plugins -> Add New and search for JetPack. Click Install Now and then Activate.
Once it’s activated, you’ll be presented with the Welcome screen. Click the Set up Jetpack button and Continue with WordPress.com.
You can create a new JetPack account or scroll down and sign in if you already have one.
Once your WordPress.com account is connected with your WordPress installation, you can select the plan you want to use. Scroll all the way down and click the Start with Free button.
If this is your new WordPress.com account, or you haven’t set up 2FA for your existing account yet, now it’s time to do it before we will move on.
So, in the new window, sign-in to your WordPress.com account, click the account icon at the top-right corner, go to Security, Two-Step Authentication and follow the steps to enable it for your account.
As you can see I have it already enabled for my account so anytime I log in to my WordPress.com account and to any of my connected websites, I need to use a unique passcode.
Please, don’t continue with the setup, until you have Two-Step Authentication properly enabled and tested. Make sure you can successfully log in to your WordPress.com account with 2FA enabled before attempting to continue. I warned you. It’s very important that you don’t lock yourself out by mistake.
Once you’re sure you can log in to your WordPress.com account with 2FA passcode generated by your mobile app or via SMS, you can move on.
Ok, when you’re ready, go back to your WordPress administration and scroll down to Security section and hit the Manage security settings link on the right side.
Scroll down to WordPress.com login and select Allow users to log in to this site using WordPress.com accounts and more importantly select the Require accounts to use WordPress.com Two-Step Authentication.
Now click the “i” icon on the right side and click the Learn more link to navigate to the WordPress.com Secure Sign On article.
Scroll down and locate two functions you will need to add to your WordPress installation. The first one will disable the default login form so it won’t be possible to use the notorious /wp-admin form anymore and the second one will require Two-Step Authentication.
Now, go back to your WordPress administration, and select Plugins -> Add New once more. This time, search for the Code Snippets plugin.
Install it and activate it. Next, click the Snippets link and Add New button on the top of the new page.
Enter the title of the snippet, like WordPress.com 2FA for example. And copy & paste both functions to the Code area.
Once you’re done, scroll down and click the Save Changes and Activate button.
Now you can log out.
Notice that you can log in only via WordPress.com account now.
Great! Not only that no one can abuse the famous /wp-admin login form on your website, but even if they managed to guess your WordPress.com username and password, without the unique passcode delivered to your mobile phone, they can’t get to your website.
I hope you enjoyed this article. Have a great day and see you next time.