Little Collie Shepherd

설명

Little Collie Shepherd moderates comments for creators. This plugin connects a WordPress site to it: each new comment is sent to Shepherd, which recommends whether to approve it, hold it for a person to look at, or mark it spam. Decisions your moderators make in Shepherd come back to the site on their own.

The plugin is a thin client. All classification happens in Shepherd; the plugin forwards comments and applies the result. It needs a Shepherd account and a connection token from it.

It works alongside Akismet. Pick the order the two run in:

  • Shadow (the default) records Shepherd’s verdict on each comment and changes nothing. Akismet decides as it always has. Use it to see how the two compare before letting Shepherd act.
  • Pre-filter runs Shepherd first. When Shepherd is confident a comment is spam, or confident it is fine, it decides and Akismet is not asked about that comment. Everything else goes on to Akismet as usual.
  • Post-filter runs Akismet first. A comment Akismet catches stays caught and is never sent to Shepherd. Shepherd sees only what Akismet let through, and can still catch what it missed.

Some comments need a closer read. Shepherd holds those for a moment and finishes reading them in the background. In pre-filter and post-filter mode, a held comment Shepherd then finds fine is approved, unless Akismet marked it as spam; in shadow mode it is left for you or your own moderation settings.

Akismet stays installed, active and configured in every mode. The plugin finds the priority Akismet’s comment check runs at and places itself just before it or just after it, so the order you chose is the order that runs. The settings page says where it found Akismet.

It fails open. If Shepherd is slow, unreachable, or not yet configured, the comment goes on to Akismet and WordPress exactly as it would without the plugin. A Shepherd problem never loses a comment.

A hidden-field honeypot also runs in every mode and marks obvious bot submissions as spam before anything else is asked.

External services

This plugin connects to Little Collie Shepherd (https://shepherd.littlecollie.com, or the address set in Shepherd base URL), a comment moderation service run by Little Collie LLC. It is needed for the plugin’s only purpose: deciding what to do with new comments and applying moderators’ decisions. Nothing is sent until a connection token has been saved on the settings page.

What is sent, and when:

  • When a comment is submitted: the comment text; the author’s name, email address, website URL and IP address; the post’s ID, title and URL; and the ID of the comment it replies to.
  • After a comment is saved: its WordPress comment ID, and, when Akismet checked it, whether Akismet called it spam.
  • When a comment is trashed or marked spam on the site: its comment ID and new status.
  • Every two minutes (WP-Cron): a request for moderator decisions waiting in Shepherd, and a confirmation of the ones applied. Hourly: a check of which comments Shepherd is still waiting on, answered with the IDs of any that are no longer on the site.

Every request carries the site’s connection token.

  • Terms of service: https://shepherd.littlecollie.com/legal/terms
  • Privacy policy: https://shepherd.littlecollie.com/legal/privacy

설치

  1. Install and activate the plugin from Plugins Add New Plugin.
  2. In Shepherd, go to Settings Sources and connect your WordPress site. Shepherd shows a token once; copy it.
  3. In WordPress, go to Settings Little Collie Shepherd and paste the token into Shared token. Leave Shepherd base URL blank unless you run your own Shepherd.
  4. Start on Shadow mode. Move to pre-filter or post-filter once you have seen how Shepherd’s verdicts compare with Akismet’s on your comments.

Until a token is saved, the plugin sends nothing anywhere and every comment goes straight to Akismet. wp-admin shows a notice saying so.

Moderator decisions are collected by a WP-Cron event every two minutes. WP-Cron only runs when someone visits the site, so on a quiet site a decision can wait for the next visit. To apply them promptly, set DISABLE_WP_CRON in wp-config.php and call wp-cron.php from a real cron job every two minutes.

FAQ

Does this replace Akismet?

No. Akismet keeps running in every mode. In pre-filter mode Akismet is not asked about a comment Shepherd has already confidently decided; every other comment still goes to it. In post-filter mode Akismet sees every comment first.

Which mode should I use on a managed host?

Post-filter. Some hosts install and configure Akismet themselves, and post-filter never changes whether Akismet runs. If the settings page warns that it cannot find Akismet’s comment check, use post-filter.

What happens if Shepherd is down?

The comment is handled exactly as if the plugin were not installed. Nothing is dropped or held because Shepherd could not be reached.

Does Shepherd need to reach my site?

No. Every call is outbound from your site to Shepherd over HTTPS. Your site needs no open port and no firewall change, only permission to make outbound requests.

What does uninstalling remove?

Deleting the plugin removes its settings, including the stored token, and its scheduled tasks. It keeps the Shepherd verdicts it recorded on your comments, since those are your moderation history. Tick Uninstalling on the settings page first if you want them removed too.

후기

이 플러그인에 대한 평가가 없습니다.

기여자 & 개발자

“Little Collie Shepherd”(은)는 오픈 소스 소프트웨어입니다. 다음의 사람들이 이 플러그인에 기여하였습니다.

기여자

자국어로 “Little Collie Shepherd”(을)를 번역하세요.

개발에 관심이 있으십니까?

코드 탐색하기는, SVN 저장소를 확인하시거나, 개발 기록을 RSS로 구독하세요.

변경이력

0.2.1

  • A comment Shepherd held while it read it more closely is approved once Shepherd finds it fine, in pre-filter and post-filter mode. Shadow mode leaves it as it was.

0.2.0

  • Finds the priority Akismet’s comment check runs at and places Shepherd just before it (shadow, pre-filter) or just after it (post-filter), instead of assuming priority 1.
  • The settings page says where it found Akismet, or warns when Akismet is active but its check cannot be found.
  • If Akismet cannot be skipped for a comment Shepherd already decided, this is logged and recorded on the comment.
  • Prepared for the WordPress.org plugin directory: this readme, with the external services the plugin uses.

0.1.1

  • First release, installed by hand from a zip.