Skip to content

Early Init WordPress security

Early Init answers the request before WordPress starts, so a refusal never turns into a full page load. A blocked bot costs almost nothing.

Early Init add-on in BotBlocker Security

Refused traffic that never reaches WordPress

Early Init WordPress security moves the decision to the start of the request, before the page load begins.

A refused visit still pays for a full load

Every visit repeats the same work: PHP reads the settings file, opens a database connection, loads plugins and theme, then builds a response. A bot on your block list walks that whole path before it is turned away.

One refusal costs almost nothing. Thousands of them in an hour are another matter, because the reader with a real question waits behind work that exists only to say no.

Early Init WordPress security changes the order. The address is checked while the request is still a string, before the application exists. A blocked visitor receives the 403 page and nothing else starts.

What Early Init is made of

Rules you already wrote

Early Init reads the same address rules kept in BotBlocker. There is no second list to keep and no second place to edit.

A router file in uploads

BotBlocker places one small routing file inside the protected uploads folder and keeps it in place.

Lines in wp-config.php

The first file WordPress reads now loads the router. Turning the feature off removes those lines again.

Repair while you work

While you use the admin area, BotBlocker checks the setup in the background and rebuilds a part that went missing.

Three answers from Early Init

Early Init asks one question per request and gives three answers. An address with a block rule gets the 403 block page. An address with an allow rule continues. Anything else continues too, and then meets the full set of checks inside WordPress.

Only block rules leave the site early. Rules that show a visitor check or ban silently keep working where they always did, inside the application, and a short ban from rate limiting is honoured by Early Init while it is active.

Early Init also lets your own tools through: scheduled tasks, the command-line client, requests from the server to itself, a paused plugin and the emergency recovery link.

Cached pages for visitors who already passed

A page cache sends a stored copy before any check can run. Without Early Init, BotBlocker has to keep pages out of the cache, and the cache has nothing to send. Early Init gives verified visitors a signed pass tied to their address, and the cache may serve them.

The pass lasts 15 minutes by default, and you can pick 1, 5, 15, 30 or 60 minutes. A visitor who turns into a problem is stopped at the next check rather than at the end of the hour.

Early Init cannot see a cache that answers before WordPress starts. Rules in .htaccess, server caches and CDN page caching still hand a page to anyone who asks. Early Init also cannot run beside MU mode: turn one on and BotBlocker turns the other off.

Settings that change the result

One switch, two places

The same control sits in the add-on panel and under Settings, System, Early Phase. Either place moves it.

Country list in Early Init

Off by default. When on, a blocked country is refused before load, and an allow rule still wins over the list.

A pass you can shorten

15 minutes is the default. A shorter pass catches a spoiled visitor sooner and sends fewer pages from cache.

Fail-safe by design

If Early Init errors, BotBlocker switches it off, removes the settings lines and alerts you. Protection falls back inside WordPress.

One of hundreds of BotBlocker capabilities

This add-on covers one job. The core plugin brings the firewall, the visitor check, the login rules and the log; PRO features extend them further. Install BotBlocker, turn on what your site needs and leave the rest off.

BotBlocker protection shield

Questions about Early Init

Does Early Init replace the other checks?
No. It adds an earlier exit for blocked addresses. Visitor verification, rate limits and behaviour scoring still run inside WordPress for everyone else.
Will my host allow the change?
Ask before you switch it on. Some hosts manage wp-config.php and overwrite it, and then Early Init stops and BotBlocker disables it.
Why do cached pages still reach bots?
A cache answered by the server or a CDN never reaches PHP. Only caches that pass through WordPress can serve verified visitors.
I turned it off. Why purge the cache?
Pages stored while Early Init was on were meant for verified visitors. Without Early Init they could reach anyone, so clear the cache first.
The status says Missing. What now?
Open any admin page and BotBlocker repairs the setup. If the status stays, wp-config.php is probably not writable.