# Getting started with Barricade (security)

> Secure WordPress with Barricade: set up for you on Phluit hosting, firewall and lockouts, one-click recommendations, malware scan, two-factor login and activity log.

Source: https://docs.phluit.com/products/wordpress-plugins/getting-started-barricade/

Barricade protects your WordPress site in layers and tells you in plain words what is done and what is left: a firewall that runs before everything else, security recommendations you apply in one click, a malware and file scan, two-factor login, login hardening and an activity log. This guide sets it up.

## Step 1: Run the setup

**On Phluit Managed WordPress, Barricade comes set up for you** and there is no wizard. The firewall, login lockouts, scanner and bad-bot blocking are on, the recommendations the platform doesn't already cover are applied, and a weekly malware scan runs at a quiet hour picked for your site. Go straight to the **Dashboard**.

On other hosts:

1.  In WP Admin, open **Barricade**. The first time, the setup wizard opens.
2.  Answer its questions and click through to the end. You can change every choice later.

The **Dashboard** then shows your **security score** and what to do next. A small Barricade widget also appears on the WordPress dashboard.

## Step 2: Apply the recommendations

Open **Barricade → Recommendations**. Each item says what it does and why, and you apply it, or put it back, with one click. For example:

-   switch off the file editor in WP Admin,
-   block PHP files in the uploads folder,
-   switch off XML-RPC and pingbacks if you don't use them,
-   hide your WordPress version and stop user enumeration,
-   add security headers to your pages.

Barricade also checks your PHP version, updates, file permissions and database prefix, and tells you what to change.

On Phluit hosting, items the platform already takes care of (the file editor, PHP in uploads, XML-RPC, information files, PHP errors and the basic security headers) show **Handled by Phluit hosting**, and Barricade doesn't apply them a second time.

## Step 3: Check the firewall

The firewall is on from the start. Open **Barricade → Firewall** to see or adjust it:

-   **Login lockouts:** after too many wrong passwords, the address is locked out for a while; repeat offenders can be banned for good.
-   **"Page not found" scanning:** addresses that probe for hundreds of missing files are locked out.
-   **Bad bots and user agents**, including fake Googlebot and Bingbot visitors.
-   **IP and country rules:** an allowlist and a blocklist, and optional country blocking.

Active lockouts and the event log are under **Barricade → Lockouts and log**, where you can unlock an address or ban it. If you ever lock yourself out, Barricade can e-mail you a one-time unlock link.

## Step 4: Scan your files

Open **Barricade → Malware scan** and click **Scan now**. Barricade compares WordPress and your WordPress.org plugins with their original files, and looks for malicious code, PHP hidden in uploads and images, dangerous `.htaccess` files and abandoned plugins. For each finding you can restore the original file, quarantine it (and put it back later) or ignore it. Change the schedule and e-mail reports on the scan's **Settings** tab.

## Step 5: Switch on two-factor login

Open **Barricade → Login security**. Two-factor login asks for a second step after the password: an authenticator app, a passkey or security key (fingerprint, face, screen lock or a USB key), a code by e-mail, or a backup code. You can require it for chosen roles, such as administrators, with a grace period in which they set it up during their next login.

On the same screen you can also:

-   give your login page a **private address**, so `wp-login.php` shows "page not found" to visitors,
-   add a **CAPTCHA** (reCAPTCHA, hCaptcha, Cloudflare Turnstile, or Barricade's own check that needs no outside service),
-   refuse **breached passwords** and require **strong passwords** for chosen roles,
-   set **session rules**, such as logging out idle users.

## Step 6: Watch the activity log

**Barricade → Activity log** records logins, changes to users and roles, content, plugins, themes and settings, WooCommerce orders and more, with who did it and from which address. Filter it, export it as CSV, and get e-mail alerts or a daily, weekly or monthly security report. On Phluit hosting the report starts as monthly.

## Good to know

-   On Phluit Managed WordPress, Barricade is installed for you, knows your visitors' real IP addresses and shows what the platform already takes care of.
-   Locked out and can't get the e-mail link? Your host or developer can run `wp barricade unlock --all`.
-   On a multisite network, network-activate Barricade for one set of settings and one log for the whole network.
-   On a site outside Phluit hosting, activate your license key first under **Barricade → License**. See [How do I activate my license key in WordPress?](/products/wordpress-plugins/activate-plugin-license-key/)
