=== Throws SPAM Away ===
Contributors: tsato
Donate link: https://gti.co.jp/throws-spam-away
Tags: comments, spam
Requires at least: 6.0
Tested up to: 7.1
Stable tag: 3.9
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

A powerful anti-spam plugin that silently discards spam comments without showing any error page.

== Description ==

This plugin was developed as a way to combat comment spam (especially from abroad). Currently, it judges spam using the following filters:

* **Japanese Character Check**: If comment does not contain Japanese characters (Hiragana, Katakana, Kanji), it is blocked.
  Instead of displaying an error page, it silently discards the comment and returns to the post as if nothing happened.
  [Can be turned ON/OFF in settings]
* **NG Keywords Check**: You can set multiple NG keywords (comma-separated).
  If a post contains these keywords, it is similarly discarded.
* **Link Count Check**: Blocks comments that contain more link URLs (containing 'http') than the allowed limit (default is 3).
* **Honey Pot / Dummy Fields Check**: Generates dummy input fields hidden from real users to catch spam bots.
  [Can be turned ON/OFF in settings]
* **IP Address Check**: Processes posts from specified IP addresses as spam.

== Installation ==

1. Upload `throws-spam-away` to the `/wp-content/plugins/` directory
2. Activate the plugin through the 'Plugins' menu in WordPress

== Frequently Asked Questions ==

= Where can I submit questions or bug reports? =
Please send questions or requests to the Support Forum on WordPress.org or contact us via our website (https://gti.co.jp/).

== Screenshots ==

== Changelog ==

= 3.9 =
* Confirmed compatibility with WordPress 7.1.
* Implemented SQL Injection prevention measures using `$wpdb->prepare()`.
* Enhanced Ajax security by removing unauthenticated AJAX handlers and adding Nonce validation and user capability checks.
* Unified client IP retrieval logic.
* Modernized hook callbacks (removed deprecated PHP4 reference pass-by-ref `&` in hook registration).

= 3.8.2 =
* Confirmed compatibility with WordPress 6.9.1.
* Confirmed compatibility with PHP 8.5.
* Added a notification message urging users to save settings when changes are detected.

= 3.8.1 =
* Unified redirect processing using `wp_safe_redirect` to prevent duplicate submissions on mobile.
* Various bug fixes for compatibility and code quality.

= 3.8 =
* Confirmed compatibility with WordPress 6.8.2.
* Fixed parameters in `tsa_validate_comment` filter for better extensibility.
