=== EMIANO Security ===
Contributors: littycojp
Tags: security, two-factor authentication, login, ip restriction, xml-rpc
Requires at least: 6.5
Tested up to: 7.1
Requires PHP: 8.0
Stable tag: 1.0.1
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Protect your login with two-factor authentication, a custom login URL, IP restriction, and by disabling unneeded WordPress features.

== Description ==

EMIANO Security focuses on the place attackers try first: your login.

= Login attempt limits =
* Temporarily block logins after repeated failures, counted per IP address and username, and per username across all IP addresses.

= Two-factor authentication =
* Each user chooses an authenticator app (TOTP) or an email code in their profile.
* Administrators can require it for all users, with a grace period.
* After 10 incorrect codes in a row, the account's login is paused for 30 minutes.

= Custom login URL =
* Log in at an address you choose. The new URL is emailed to the administrator.
* wp-login.php and the admin screens return a 404 for visitors who are not logged in.

= IP restriction =
* Allow only listed IP addresses (IPv4, IPv6, CIDR) to open the login and admin screens.

= Disable WordPress features =
* Block XML-RPC and hide the WordPress version.
* Hide usernames from ?author= URLs and the REST API.
* Optionally hide author archives, users in the XML sitemap, and author details in oEmbed.
* Optionally disable the theme and plugin file editors.
* Optionally disable application passwords.

== Frequently Asked Questions ==

= I forgot my login URL or locked myself out. What can I do? =
Rename the plugin's folder using FTP or your hosting file manager. This disables the plugin so you can log in as usual.

If IP restriction locked you out, add `define( 'EMIANO_SECURITY_DISABLE_IP_RESTRICTION', true );` to wp-config.php, log in and correct the allowlist, then remove that line.

= I lost the phone with my authenticator app. =
Another administrator can reset your two-factor authentication from your user profile. If you are the only administrator, rename the plugin's folder as above.

= Does IP restriction work behind Cloudflare or another proxy? =
No. It checks only the direct connection IP address, so do not use it on sites behind a proxy.

= Does it work on multisite? =
The custom login URL is for single-site installations only.

= Does the plugin send data to external services? =
No. QR codes are generated in your browser.

== Screenshots ==

1. Settings screen: two-factor authentication, login URL, login attempts, IP restriction, and WordPress features to disable.
2. Setting up an authenticator app on the profile screen.
3. Entering the verification code at login.

== Changelog ==

= 1.0.1 =
* Load the standalone 404 and two-factor profile styles through WordPress.

= 1.0.0 =
* Initial release.

== Third-party library credits ==

qrcode-generator 2.0.4 by Kazuhiko Arase, licensed under the MIT License.
Source: https://github.com/kazuhikoarase/qrcode-generator
