
iSpam
v5.0.0Keyvan Hardani · 2013年11月5日 上架
Privacy-friendly comment spam protection: signed time token, honeypot, JavaScript check and link limit. No captcha, no external service.
- 正在使用
- 10 以下
- 评分
- 暂无
- 累计下载
- 1,685
- 最近更新
- 2026年11月27日
贡献者
截图
iSpam stops automated comment spam before it reaches your moderation queue – without captchas, without cookies and without sending data to third parties.
Every comment form gets a signed time token. Bots that submit the form instantly, reuse old forms or post directly to wp-comments-post.php are stopped. Additional checks catch more.
Honest scope: iSpam stops automated and simple bots. It does not stop spam that a person writes and sends manually – combine it with comment moderation (or a content-based filter) for that.
Features
- Time check – minimum time between loading the form and submitting it, optional maximum form age.
- Signed token – HMAC signature with your site’s secret salt, bound to the post.
- Honeypot – an invisible field that humans leave empty.
- JavaScript check (optional) – a fresh, single-use token (valid for max. 2 hours) is fetched when the visitor starts typing. Works with page caching; falls back to admin-ajax.php if the REST API is blocked.
- Link limit – counts links in tags, plain URLs, protocol-relative URLs and “www.” addresses, also when they are hidden behind HTML entities.
- Pingbacks & trackbacks (optional) – block them or send them to the spam folder.
- Choose the action – block with your own message (HTTP 403) or store the comment in the WordPress spam folder.
- Spam log – date, post, anonymised IP, reason and a short excerpt; filter by reason, delete single entries, bulk delete or empty the log.
- Automatic cleanup – log entries are deleted after a configurable number of days (default 30).
- Overview & dashboard widget – blocked comments in the last 24 hours, the last 7 days and since installation, most common reason.
- Abilities API – read-only ability
ispam/get-spam-statisticsfor tools and AI agents (requires the capabilitymanage_options, like the spam log). - WooCommerce reviews are protected as well (they use the comment form).
- Skips logged-in users (optional), works with classic and block themes.
For developers
- Filter
ispam_check_result( $reason, $post_id, $content )– return a reason code to block, or an empty string to allow. - Filter
ispam_block_message( $message, $reason ). - Action
ispam_spam_detected( $reason, $post_id, $action ). - Ability
ispam/get-spam-statistics– input{ "entries": 0–50 }, output totals, counts per reason and optionally the latest entries without IP addresses. Permission:manage_options.
Privacy
iSpam does not set cookies and does not contact external services.
When a comment is classified as spam and logging is enabled, iSpam stores the date, the post, the anonymised IP address (IPv4: last octet removed, IPv6: shortened to the first 48 bits), the reason and the first 200 characters of the comment. Entries are deleted automatically after the configured retention period (default 30 days).
If the action “Mark as spam” is selected, the comment is additionally stored like every other WordPress comment in the spam folder – including the full IP address, name, email address and browser user agent – until it is deleted there.
To make JavaScript tokens single-use, iSpam stores a hash of each used token for at most two hours. A suggested text for your privacy policy is added under Settings › Privacy.

