Tutorial

What I Learned from 10 Years of Protecting WordPress Sites from Hackers

A practical security routine: back up, scan for malware, check the database, restore a site, then lock down the dashboard and settings.

Salman Sarwar

By Salman Sarwar

  • Intermediate

1 h 11 min

Published 19 January 2025

Video thumbnail: What I Learned from 10 Years of Protecting WordPress Sites from Hackers
Chapters
  • 0:00

    Introduction

  • 1:12

    WordPress Basics

  • 5:32

    Manual Backup

  • 11:51

    Malware Scan

  • 15:18

    Database Check

  • 16:32

    Database Backup

  • 18:52

    Restore Website

  • 27:32

    Security After Fresh Install

  • 30:00

    Real Hack Example

  • 34:12

    Dashboard Security

  • 38:34

    Disable Author Archive

  • 40:43

    Security Plugins

  • 41:11

    Important Tip

  • 43:08

    Advanced Settings

  • 1:06:01

    Hide WordPress Info

  • 1:08:02

    2-Step Verification

  • 1:09:50

    Outro

What you will be able to do

  • Make manual backups of your files and database

  • Scan a site for malware and check the database

  • Restore a site from a backup

  • Harden a fresh install and the dashboard

  • Turn on two-step verification

Before you start

  • Admin access to a WordPress site

  • Access to your hosting control panel for backups

About this lesson

This lesson covers the security routine I use on WordPress sites. It starts with what to do before anything goes wrong: manual file and database backups, a malware scan and a database check.

It then shows how to restore a site, what to change right after a fresh install, and a real hacked-site example. The second half covers dashboard security, turning off author archives, security plugin settings, hiding WordPress information and two-step verification.

It suits anyone who runs a WordPress site, whether it is your own or a client’s. Start with the backup chapters: a site can only be restored if a recent backup exists. The code used in the “Hide WordPress Info” chapter is free on GitHub (see the resources), and the free WordPress Website Launch Checklist includes the security and backup checks to run before launch.

Something in this lesson no longer matches what you see?

Watch more