Security – Firewall, Hardening, Scanner & Monitoring

Protect WordPress with a PHP and server firewall, country blocking, smart 404 blocking, hardening, security headers, file change detection, malware scanning, audit log and uptime monitoring.

Free Elephanta → Security 3 min read Updated
On this page

Elephanta → Security is a complete security suite: a firewall, login protection, two-factor authentication, hardening, spam protection, a file and malware scanner, an audit log and monitoring. Everything is free.

The Security dashboard shows your protection status at a glance.

#Tabs at a glance

Tab What it protects
Login Brute-force lockouts, hidden login URL, user enumeration. See Login & 2FA.
Two-Factor Authenticator app and email codes, passwordless login
Users Strong passwords, idle logout, one session per user, approval of new registrations
Firewall PHP firewall, IP/user-agent blocking, REST API & XML-RPC, smart 404 blocking, country blocking
File Security .htaccess server rules, file editor, PHP in uploads, security headers
Database Change the database table prefix
Spam & CAPTCHA Comment spam, honeypots, CAPTCHA providers
Scanner File change detection and malware scan
Audit Log Record of logins, blocks and changes
Monitoring Uptime, response time and blacklist checks
Tools Export, import and reset settings

#Firewall

  • PHP firewall with 6G-style rules that block common attack patterns.
  • Block fake Googlebots (verified with a DNS lookup) and bot POST requests.
  • IP addresses and user agents: block IPs, CIDR ranges, ranges or wildcards; always-allowed IPs; blocked and allowed user agents (for example to let your uptime monitor through).
  • REST API: public (WordPress default) or logged-in users only, with allowed routes for visitors.
  • XML-RPC: enabled, pingbacks and multicall disabled, or disabled completely (Jetpack and the WordPress app need XML-RPC).
  • Smart 404 blocking: vulnerability scanners request lots of missing URLs, so Elephanta blocks IPs that cause too many 404s, or instantly when a URL contains a pattern you list.
  • Country blocking: block listed countries or allow only listed countries, for the whole site or selected pages, with always-allowed IPs.
Don't block yourself

Elephanta refuses to block your own IP address and warns you if it is in the blocked list.

#File security and hardening

  • Server rules (.htaccess): protect wp-config.php, .htaccess, debug.log and other sensitive files; disable directory listing; hide the server signature; server-level 6G rules; maximum request size; prevent image hotlinking; block PHP execution in uploads. On nginx, Elephanta shows rules to add yourself.
  • WordPress hardening: disable the theme/plugin file editors, hide the WordPress version, disable application passwords (they skip two-factor authentication).
  • Security headers: frame protection (clickjacking), nosniff, Referrer-Policy, Permissions-Policy, Cross-Origin-Opener-Policy and HSTS (only enable when the whole site works over HTTPS).
  • Access restrictions: HTTP authentication in front of the login page or the whole site, a visitor lockout message, and copy protection.

#Spam & CAPTCHA

  • Comment honeypot, minimum seconds before posting, link limits, "must be sent from this site", and automatic blocking of repeat spammers.
  • CAPTCHA providers: a built-in math question (no external service), Google reCAPTCHA v2 (checkbox), hCaptcha or Cloudflare Turnstile, on the forms you choose (login, registration, lost password, comments), plus an invisible honeypot.

#Scanner

  • File change detection: save a baseline and get alerted when core, plugin or theme files change. Accept the current files as the new baseline after updates.
  • Malware scan: automatic scans on a schedule (hourly, twice daily, daily or weekly).

#Audit log and monitoring

  • Audit log: logins, failed logins and security blocks are always recorded; optionally record plugin, theme, user and setting changes. Choose how many days to keep entries.
  • Email notifications to any address.
  • Uptime: checks the home page every 5 minutes, with a slow-response alert.
  • Blacklist: daily Google Safe Browsing check with your free API key.

#Locked out?

Add this to wp-config.php to switch the Security module off, log in, fix the setting, then remove the line:

define( 'ELEPHANTA_SECURITY_DISABLE', true );

Switching Security off from the dashboard also removes its .htaccess rules.