=== Antypas Login Shield ===
Contributors: ioannisantypas
Tags: login security, brute force, limit login attempts, user enumeration, xmlrpc
Requires at least: 5.6
Tested up to: 7.0
Requires PHP: 7.2
Stable tag: 1.0.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Protect your login page from brute-force attacks and stop bots from harvesting your usernames. Simple, safe defaults and no external services.

== Description ==

Antypas Login Shield adds a focused layer of protection around the most attacked part of any WordPress site: the login page.

It does two things well:

1. Limits failed logins. After too many wrong attempts from the same IP address, that address is locked out for a while. This dramatically slows down automated password-guessing without affecting normal visitors. Lockouts are always temporary, and the correct password still works as soon as the lockout expires.

2. Stops username enumeration. Before attackers guess passwords, they usually try to harvest valid usernames through author scans and the REST API. Login Shield closes those doors.

Everything runs on your own server. The plugin makes no external calls and collects no data.

= Key features =

* Temporary IP lockouts after a configurable number of failed logins
* Configurable number of attempts and lockout length
* IP whitelist so you can never lock yourself out
* Generic login errors that do not reveal whether the username or password was wrong
* Blocks ?author=N scans that map user IDs to usernames
* Hides the REST API users list from anonymous visitors while keeping it available to logged-in admins
* Optional blocking of author archive pages
* Optional switch to disable XML-RPC
* A simple log of recent lockouts on the dashboard
* Plain-English settings with help text on every option

= Safe by default =

Out of the box the plugin turns on login limiting, generic errors, author-scan blocking and REST user protection. The options that can change how your site behaves for visitors, such as blocking author pages and disabling XML-RPC, are left off until you choose to enable them.

== Installation ==

1. Upload the plugin to the /wp-content/plugins/ directory, or install it through the Plugins screen in WordPress.
2. Activate the plugin through the Plugins screen.
3. Go to Login Shield in the admin menu to review the settings.
4. Add your own IP address to the Allowed IP addresses box so you are never locked out.

== Frequently Asked Questions ==

= I locked myself out. What do I do? =

Wait for the lockout to expire (15 minutes by default). To avoid it in future, add your IP address to the Allowed IP addresses box in the settings. If you need immediate access while still locked out, you can deactivate the plugin from your hosting file manager by renaming its folder inside wp-content/plugins.

= Does this stop every attack? =

No single plugin does. Login Shield is one layer of defense in depth. Use it alongside strong passwords, an up-to-date site, and a good host. For full firewall coverage, pair it with a dedicated security suite.

= My site is behind Cloudflare or a proxy. Will lockouts still work? =

Login Shield identifies visitors by the IP address your server reports. If your site sits behind a proxy or CDN that does not pass the real visitor IP through to your server, lockouts may apply to the proxy address rather than the individual visitor. Most managed hosts and Cloudflare setups pass the real IP through correctly, but check with your host if you are unsure.

= Will disabling XML-RPC break anything? =

It can. XML-RPC is used by the WordPress mobile app, Jetpack and some posting and scheduling tools. That is why it is left off by default. Only enable it if you do not use any of those.

= Does it work with caching plugins? =

Yes. The login page is never cached, and all checks run server-side.

== Changelog ==

= 1.0.0 =
* Initial release.
* Login attempt limiting with temporary IP lockouts.
* IP whitelist.
* Generic login errors.
* Author-scan and REST API user-enumeration protection.
* Optional author-archive blocking and XML-RPC disabling.
* Lockout log on the dashboard.