A reading room for early defense

Stop the knock before the house wakes.

A short map of noisy scanners, the decoy that only watches its own door, and the cheap defense that never opens it.

01
The signal

Refuse the request before the application starts. A weekly ban list, a plugin, and a clever conversation all arrive after the CPU has already been spent. A static rule at the web server does not.

Show the door, don’t describe it

Request Web server Application A reader

A probe for a hidden file dies at the server. The application stays asleep.

Three accents

  • Early beats clever. A 403 in the server config costs almost nothing between requests.
  • The path beats the address. A fresh IP still asks for the same hidden file.
  • Shared lists help later. They miss a brand-new address and can ban a shared one.

Mind map

Each room is a real section below. The links scroll to open text.

What actually arrives

Signature scanners

Most knocks are wordlists. They ask for hidden files and old bug URLs. A warning on the page is never read.

Rude crawlers

Some ignore a no-crawl notice and harvest pages. A maze of empty pages can waste their fetch, and the host’s bandwidth if it sits on the real site.

Language-model agents

A page can only influence an agent that was told to read it. Most probes never become a conversation.

Repeat visitors

A ban helps only if the same address returns. A path rule still catches the next address, because the path is the same.

A door that watches

A low-interaction decoy is a path no reader is linked to. It logs the address, the path, the headers, and the time, then returns a static 404. It never runs the payload and never boots the application.

What that log holds is the request itself: network, user-agent, TLS fingerprint, and the username typed into a form that never succeeds. A high-interaction fake machine shows more behavior and costs more to keep sealed.

Public mazes already exist for crawlers that ignore no-crawl rules. Cloudflare’s AI Labyrinth feeds them generated junk. Nepenthes and Iocaine go further, into endless nonsense. Those belong on an isolated host, not in front of real pages.

Paths that are almost never a reader

IntentTypical pathsQuiet response
Secret files/.env, /wp-config.php, /.aws/credentials403 or 404, no file, no application
Source history/.git/config, /.git/HEADSame. A 200 here is a leak
Old panels/phpmyadmin/, /adminer.php, /xmlrpc.phpRefuse at the server if unused
Backups/backup.zip, /db.sql.gzDo not invent a download
Debug pages/phpinfo.php, /server-status, /actuator/envKeep them off the public host
Login sprayPOST to a real loginRate-limit. Do not permanently deny the login URL

Shared lists, after the door

CrowdSec for WordPress

A bouncer for a shared attacker list. It can ban or show a captcha without a local engine. It only runs if the request already entered PHP. It does not see a static hidden file.

An AbuseIPDB connector

Checks a few sensitive routes against a public reputation score and can report an address back. Useful as a notebook. Too late, and too narrow, to be the CPU shield.

Hashing an address does not make a network private. The same hash everywhere is just a blocklist. A different salt on every site means the sites can never agree.

A quiet plan

Put the rule above the application

On Apache, a rewrite at the top of the htaccess file, before the application block, returns 403 and stops. On Nginx, a matching location returns 404 from the server.

Leave the real login alone

Hidden-file rules and login-rate limits are different jobs. A permanent deny of the login page locks out the owner.

Use the host firewall if it is already there

Suites such as Imunify360 sit in front of the site and already share reputation. Do not stack a second firewall plugin on the same job.

Log, then forget the weekly hunt

A separate log of bait hits is enough to read once a month. The rule, not the hunt, is what saves CPU.

Share a reputation note

Address, path class, time, and a count. One site’s vote should not ban the network.

The rule, shown

RewriteEngine On
RewriteRule ^(\.env|\.git|\.aws|\.ssh|wp-config\.php|xmlrpc\.php|phpmyadmin|adminer\.php|phpinfo\.php) - [F,L]

Place it above the application rewrite block. Keep a copy of the old file. Skip xmlrpc.php if a service still needs it.

What to keep

Keep the door. Keep a short allowlist for the owner, monitors, and payment webhooks. Keep one log. Let shared lists be a second opinion.

A plugin that claims to stand above the application still boots the application. A private ban network that updates itself with nobody watching will eventually ban a reader. The static rule does not.

← TopicsQuiz