Skip to content

Hide WordPress version

Two small files announce your WordPress build and hand out your error log. Hide WordPress version and the pair stops answering strangers.

Hide WordPress add-on in BotBlocker Security

Two files nobody needs in public

Hide WordPress version by removing a readme you never read and a log you never meant to publish.

What a scanner learns in two requests

WordPress ships a readme file in the site root. It is documentation for people installing the software, and it names the version you run. On a live site it serves no purpose beyond telling a stranger which release to try.

The second file is the debug log. When logging is on, WordPress writes errors and notices into it, and on many hosts that file sits in a folder the web server will happily deliver to anyone who guesses the name.

Hide WordPress version deals with both. One file is deleted after activation and after each core update. The other is deleted when possible, and then closed at the server so a new one cannot be downloaded.

The two protections

readme.html removed

Deleted on activation and again after every core update, because WordPress puts it back. You do not have to remember.

debug.log deleted

Removed when the file exists and can be written, so old errors do not stay online after the setting is on.

Access denied by rule

A managed block in wp-content/.htaccess refuses requests for the log on Apache and LiteSpeed servers.

The truth about nginx

nginx ignores .htaccess. The panel says so and prints the server rule to paste instead of claiming success.

Why a file needs the web server

Static files never reach PHP. The web server answers a request for an image, a text file or a log directly, which means a plugin cannot refuse it from inside WordPress. Code that promises such a block is either wrong or it is rewriting server configuration.

That is why this add-on edits one small range in an .htaccess file and nothing else. The block sits between two markers, and the add-on edits only the text inside them. Your own rules stay untouched.

On nginx the rule file is ignored, and the panel warns about it and prints the exact snippet for your server block. The log is only closed once you add it and reload the server.

Statuses that tell the truth

The panel reads the live state each time you open it: whether each file exists, whether it can be written, and which server serves the site. The answer decides what happens next.

OK means nothing is left to do. Warning means the add-on cannot guarantee the result, which is normal on nginx and expected until you paste the snippet. Fail means a file exists and cannot be removed, which is a permissions question for your host.

The diagnostic is more useful than a green badge. A read-only readme on a managed host is not a bug in the add-on.

Where the log actually lives

A path in the setting

If the debug constant holds a path, the add-on uses it and closes that file instead of the default one.

The default location

Otherwise the log is wp-content/debug.log, whether the constant is true or not set at all.

A block you can remove

Turning the option off removes the managed block. Deleting the add-on does the same and leaves your rules alone.

Files stay deleted

Deactivation does not restore the readme. The next core update brings it back, which is the normal state.

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 the two files

Does the readme come back?
After every core update, yes. The add-on deletes it again automatically, so the file is gone within the same admin session.
Is hiding the version enough?
No. It removes one hint. Updates, strong passwords, a hidden login and closed XML-RPC still carry most of the weight.
Why does nginx still show a warning?
The add-on cannot verify a rule it does not manage. Paste the snippet into the server block, reload nginx, and leave the warning alone.
The log is read-only. Is it still exposed?
It may be. The .htaccess block may still take effect on Apache and LiteSpeed. If the status says Fail, check that the file and its folder are writable.
Does it edit core files?
No. It removes one file, clears one log and owns one marked block. Nothing else in WordPress is changed.