=== Ason Guard ===
Contributors: aytanasonteknolojicom
Tags: captcha, anti-spam, proof of work, woocommerce, login
Requires at least: 6.8
Tested up to: 7.1
Requires PHP: 7.4
Stable tag: 26.1.8
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Free self-hosted spam check: proof of work in the background, no click, no puzzle, no outside service. Cache friendly.

== Description ==

Ason Guard stops spam robots without asking your visitors to click a box or pick pictures, and without sending anything to an outside service. Everything runs on your own server.

* **How it works:** when the visitor starts filling in a form, the browser asks your site for a small signed calculation (proof of work, SHA-256) and solves it in the background in a Web Worker. Your server checks the signature, the time limit, the form it was made for and that the answer was not used before.
* **One use only:** each answer is valid once, for 5 minutes (setting) and only on the form it was made for.
* **Adaptive difficulty:** "Medium" takes about half a second on an average phone. A connection that sends many requests, fills the hidden field or sends forms too quickly gets harder calculations. Connections are told apart by a short-lived hash of the IP address; the IP address itself is not stored.
* **Invisible layers:** hidden honeypot field, time trap (forms sent faster than a few seconds are refused) and requests without JavaScript are refused with a clear notice.
* **Works with page caching** (LiteSpeed Cache and others): the calculation is not part of the page; it is fetched with a POST request when the visitor starts typing. No nonce is needed.
* **Where:** WordPress log in, registration, lost password and comments; WooCommerce My account log in, registration and lost password, product reviews, classic checkout and block checkout (checked before the order is created); Ason Form; Contact Form 7; WPForms Lite; MetForm; SureForms. Each one can be turned on or off. Elementor forms need Elementor Pro and are not supported (the free Elementor has no form widget; use the Ason Form widget).
* **Exceptions:** logged-in administrators (optional), chosen roles and IP addresses or ranges.
* **Hide site users (optional):** the REST user list, `/?author=1` addresses, the user site map and author details in embeds are closed to visitors who are not logged in. Off by default.
* **Statistics:** passed and blocked checks per form type for the last 30 days. No personal data.
* **Accessible:** a small status line ("Verifying…", "Verified") in an `aria-live` region, right-to-left ready, honours reduced motion. English, Turkish and Arabic.
* **For developers:** `[ason_guard context="newsletter"]` shortcode or `ason_guard_widget( 'newsletter' )` in your form, and `ason_guard_verify( 'newsletter' )` (returns `true` or a `WP_Error`) where the form is processed.

The same check is built into the free **Ason Form** plugin. When both are installed only one copy runs and the settings are shared.

= Data stored =

Settings and a secret key in the `wp_options` table. Used answers are kept in `wp_options` until they expire and are then removed. Daily counts of passed and blocked checks (30 days, no personal data). Short-lived counters keyed by a hash of the IP address (at most 30 minutes) in transients.

== External services ==

None. Ason Guard does not connect to any external service, has no licence check and sends no data to Ason Teknoloji or anyone else.

== Installation ==

1. Install and activate.
2. Ason Teknoloji → Guard: tick where the check should run and save.

== Frequently Asked Questions ==

= Do my visitors have to do anything? =

No. The status line shows "Verified" a moment after they start typing.

= What happens without JavaScript? =

The form cannot be sent and a clear notice explains why. For Ason Form you can allow sending with only the invisible checks.

= Can I lock myself out of the log in page? =

Logged-in administrators are not checked by default. If JavaScript is off in your browser the log in form is refused while the log in check is on; you can turn it off again by renaming the plugin folder.

== Screenshots ==

1. The WordPress log in page: the check runs in the background and the badge shows "Verified". Nothing to click.
2. A comment form protected by Ason Guard.
3. Settings: choose where the check runs (WordPress, WooCommerce and form plugins) and the badge theme.
4. Settings: difficulty, adaptive difficulty, time limits, forms sent without JavaScript and failed sign-ins.
5. Passed and blocked checks per form type for the last 30 days, and the functions for developers.

== Changelog ==

= 26.1.8 =
* Fixed: the badge icon is drawn completely.

= 26.1.7 =
* First release on WordPress.org.

== Upgrade Notice ==

= 26.1.8 =
Fixes how the badge icon is drawn.
