KHALAF Mobile Authenticator & 2FA Wordpress Plugin - Rating, Reviews, Demo & Download
Plugin Description
KHALAF Mobile Authenticator & 2FA adds Two-Factor Authentication (2FA) to your WordPress website without subscriptions or third-party cloud dependencies.
Protect your admin dashboard and user accounts against brute-force attacks, credential stuffing, and password leaks using standard Time-Based One-Time Passwords (TOTP) and Email OTP fallback.
Key Features
- Universal Mobile Authenticator Compatibility: Works with Google Authenticator, Microsoft Authenticator, 2FAS, Authy, and any standard RFC 6238 TOTP authenticator app on iOS and Android.
- Email OTP Verification Fallback: Request a temporary, one-time 6-digit login verification code sent to your registered account email address.
- Privacy & Local QR Generation: QR codes are generated directly in your browser using local client-side scripts. Your 2FA secrets are never sent to external APIs or remote servers.
- Brute-Force & Rate Limiting Defense: Automatic lockout after consecutive failed verification attempts with a live countdown timer.
- Hashed Emergency Backup Codes: Generates 8 single-use recovery codes stored as WordPress password hashes. Download as
.txtor send them to your email during setup. - Role-Based 2FA Enforcement: Require 2FA for all Administrators or specific user roles (Editor, Author, Shop Manager, etc.).
- Admin Setup Enforcement: Enforced users are restricted to the 2FA setup screen until they configure their 2FA credentials.
- Application Passwords Shield: Automatically disables core application passwords for 2FA-protected accounts when enabled in settings.
- Lightweight Architecture: No custom database tables created. Uses standard WordPress options, transients, and user meta.
How the Email OTP Fallback Works
When logging in, users can click “Send Code to Email”. The plugin generates a cryptographically random 6-digit code, stores it as an expiring hash transient (5-minute validity), and emails it to the user. A 60-second cooldown prevents repeated email requests. The same login input accepts the code.
Third-Party Libraries
- QRCode.js (
assets/js/qrcode.min.js, full unminified source included atassets/js/qrcode.js) — Client-side QR code generator, licensed under the MIT License (https://github.com/davidshimjs/qrcodejs).
Screenshots
Setup screen with local QR code generation, manual entry key, and authenticator app links.
Login screen with 2FA verification step and Email OTP fallback button.
Brute-force protection lockout card with interactive countdown timer.
Comprehensive settings hub: policy enforcement, role selection, rate limiting, and backup codes management.

