Tegatai Secure Wordpress Plugin - Rating, Reviews, Demo & Download
Plugin Description
Security plugin for WordPress. It combines a firewall, login protection, anti-spam, server rules, HTTP headers, path masking, scanners, session control, encrypted database backups and IP ban sharing between your own sites.
Rules that the web server can enforce are written to tegatai-nginx.conf (nginx) or .htaccess (Apache, LiteSpeed), so those requests are blocked before PHP starts. Everything else runs inside WordPress. Every module can be switched on and off on its own.
Requirements
- WordPress 7.1 or newer
- PHP 8.4 or newer with OpenSSL and sodium; zlib for the GeoIP database
- nginx, Apache or LiteSpeed (Apache and LiteSpeed with mod_rewrite)
- WP-CLI to create the Hive and backup keys
Features
Dashboard
- Security score with the reasons behind it and a list of recommended settings
- Recent security events and the most active blocked IPs of the last 24 hours
- Status widget on the WordPress dashboard
Firewall
- WAF: checks URL, query string and request body for SQL injection, script injection, path traversal and PHP code patterns. Users who may edit posts are not checked.
- Own regex rules (one per line, with a check against slow patterns) and a URL whitelist
- IP whitelist and blacklist (one IP per line)
- Bad bot filter (attack tools and scripted clients) and optional blocks for AI crawlers and SEO crawlers. A separate switch lets AI assistants open a page when a person asks them to (Claude-User, ChatGPT-User, Perplexity-User) while training crawlers stay blocked. Real search engine bots are verified by reverse DNS and let through.
- Rate limit: 180 requests per minute, 60 for AJAX and API requests, then HTTP 429
- 404 trap: 20 not-found requests within 5 minutes ban the IP for 1 hour. Requests for typical scanner targets (
.env,phpmyadmin,shell.phpand others) ban it for 24 hours at once. - Trap URL: a path listed as
Disallowinrobots.txt; a request for it bans the IP for 24 hours (part of the WAF) - Upload guard: blocks uploads of executable files and scripts with a disguised extension
- Bans can be reported to AbuseIPDB (optional, see “External services”)
Login
- Login limit: 5 failed logins within 15 minutes lock the IP for 1 hour
- Custom login URL, blocking of
wp-login.phpand hiding of/wp-admin/for logged-out visitors - Two-factor authentication for administrators: email code, authenticator app (TOTP) or both; one-time backup codes to download
- Email warning on a login from an unknown device
- Dashboard only for administrators and editors
- Logout of administrators after 60 minutes without activity
- Switch off application passwords
- Email alerts and webhook alerts (Discord, Slack) for security events
Anti-spam
- Hidden honeypot field in the comment form and the login form
- Minimum fill time and referrer check for comments
- Maximum number of links per comment
- List of disposable email domains for comments and registration
- Cloudflare Turnstile or Google reCAPTCHA v2 / v3 (adjustable minimum score) for comments and login
GeoIP
- Block or allow a list of countries, for the whole site or only for the login and XML-RPC
- Country lookup in a local database (DB-IP “IP to Country Lite”); visitor IPs are not sent anywhere
- Behind a trusted proxy (for example Cloudflare) the country header of the proxy is used
- Unknown countries and a missing database never block (fail open)
Server rules (written to the nginx file or .htaccess)
- No directory listings
- Blocks sensitive files (
.env,.sql,.bak,.log,.git), WordPress files such asreadme.html,license.txtandwp-config.php, and dotfiles - Blocks
xmlrpc.php - No PHP execution in the uploads folder
- No direct PHP requests in plugins and themes, with an exception list (preset for LiteSpeed Cache guest mode, Matomo and Burst Statistics) and a switch to allow them
- Bad bot filter on server level
- Hotlink protection for images, with a whitelist of allowed domains
- Own lists of protected folders and blocked files
HTTP headers
X-Frame-Options, X-Content-Type-Options, X-XSS-Protection, HSTS (optionally with subdomains), Referrer-Policy, Permissions-Policy and a basic Content-Security-Policy.
WP Masking
- Plugin and theme folders appear as
/assets/<name>/; the names can be set per plugin and theme /wp-includes/,/wp-json/andadmin-ajax.phpget their own paths- Removes
?ver=parameters, script and style ids, the generator tag, RSD, wlwmanifest, shortlink and REST links, the emoji script, speculation rules and theX-Pingbackheader - Optional neutral file names per file and a 404 for the original paths
- New paths are only used after a test request returned the real file
Hardening
- Hides the WordPress version
- Switches off XML-RPC inside WordPress
- Switches off the theme and plugin file editor
- Blocks user enumeration through
?author=for logged-out visitors - Generic login error message instead of “wrong username” or “wrong password”
- Admin username trap: login attempts as
admin,administrator,rootorwebmasterban the IP for 24 hours, unless such an account exists - Privilege guard: role changes to administrator by users who are not administrators are reverted
- Database cleanup on demand: expired transients, spam and trashed comments, post revisions, table optimization
Scanners
- Main scanner: runs in the background in steps; compares the WordPress core files with the official checksums and plugin and theme files with a saved snapshot
- Malware scanner: searches PHP and JS files for typical backdoor and obfuscation patterns
- WordPress core check against the checksums of WordPress.org (read only; repairs go through “Re-install version” under Dashboard Updates)
- File integrity monitor for plugins, must-use plugins and themes
- Database scan for injected scripts in posts, post meta, comments, options and user meta
- Option scan for suspicious values in
wp_options, with an exception list - Cron scan for unknown or suspicious scheduled events, with an exception list
- Uploads monitor: finds scripts and executable files in the uploads folder
- Permission check for
wp-config.php,.htaccessandindex.php - Quarantine: found files are moved out of reach (by hand or automatically) and can be downloaded or deleted
- Folder exclusions for the scans
- Daily check of the installed plugins against WPVulnerability (optional, off by default)
IP Prison
List of active bans with reason, source (this site or a Hive peer) and expiry; single IPs can be released.
Sessions
- List of active sessions per user; end single sessions
- Session ends when the IP address or the browser changes (each optional)
- One session per user
- Maximum session length in minutes
- Successful logins are logged with user, role, IP and browser
Backups
- Database backups by hand or daily / weekly by WP-Cron; the newest 7 are kept
- Always encrypted: with a public-key backup key (X25519, XChaCha20-Poly1305) or with a secret from the secrets file
- Consistent snapshot of InnoDB tables, low memory use (streamed in 1 MB chunks)
- Download as a gzip SQL file that imports with
mysqlor phpMyAdmin
Secrets
- Keys, API secrets, captcha secret keys and the webhook URL are read from a PHP file outside the web root or from
wp-config.php, never from the database - Status page with a ready shell command to create the file
- Sudo PIN (bcrypt hash) to show secrets in the admin
Extras
- REST API only for logged-in users
- Disable right-click and text copying on the front end
- Export and import of all settings as a JSON file
Logs
- Event log in its own database table (30 days, at most 5000 entries)
- Security timeline
- Terminal: live view of the traffic log in the browser
API Guard (separate page)
Protects your own endpoints (match by “contains”, exact path or regex) with a static token or an HMAC signature, timestamp check, one-time request IDs, an IPv4 / IPv6 allowlist, a rate limit and a delay after failed authentication.
The Hive (separate page)
Shares IP bans between your own WordPress sites. Messages are signed with Ed25519 and encrypted (X25519); sites without a key can use HMAC-SHA256. Per-peer rate limit, ban duration and a never-ban list; whitelisted, private and server IPs are never banned.
WP-CLI
wp tegatai hive-keygen, `wp tegatai hive-pubkey` and `wp tegatai backup-keygen`.
Data storage
- Settings and the event log: WordPress database (own tables
tegatai_logs,tegatai_settings,tegatai_quarantine) - Backups, quarantine, logs, snapshots, GeoIP database and the nginx file:
wp-content/uploads/tegatai-secure/, protected by.htaccess,web.configand nginx rules - Secrets and keys: only in files that you create outside the web root, or in
wp-config.php
Reporting a vulnerability
Please report security issues privately to tegatai@anime-mitsuketa.tokyo.
External services
GeoIP lookups are local. The plugin only contacts these services when the matching feature is used:
- DB-IP (
download.db-ip.com): monthly download of the free “IP to Country Lite” database while the GeoIP block is on. No visitor data is sent (plain download). Terms of service, privacy policy. The database is licensed under CC BY 4.0. - AbuseIPDB (
api.abuseipdb.com): only when “Report bans to AbuseIPDB” is on and an API key is set. Sent per banned IP: the IP address, the category and the ban type. Terms, privacy policy. - Cloudflare Turnstile (
challenges.cloudflare.com): only when Turnstile is switched on for anti-spam or login. The visitor’s browser loads the Turnstile script from Cloudflare; the server sends the Turnstile token and the secret key to Cloudflare for verification. Terms, privacy policy. - Google reCAPTCHA (
www.google.com/recaptcha): only when reCAPTCHA is switched on for anti-spam or login (it switches Turnstile off). The visitor’s browser loads the reCAPTCHA script from Google; the server sends the reCAPTCHA token and the secret key to Google for verification. Terms, privacy policy. - WordPress.org (
api.wordpress.org): core file check against the official checksums. Sent: WordPress version and locale. Privacy policy. - WPVulnerability (
www.wpvulnerability.net): optional daily vulnerability check of the installed plugins, off by default (Scanner tab). Only after you enable it: the plugin slugs are sent once a day. Privacy policy. - Your webhook URL (Discord or Slack, optional): event text, IP address and user agent of the logged event are sent to the URL you enter. Discord terms, Discord privacy policy, Slack terms, Slack privacy policy.
- Your own sites (The Hive): signed and encrypted ban messages are sent to the sites in your peer list.
Screenshots
No screenshots provided

