moderation-tagging · moderation-tagging-07 · phrasing B · Aug 27, 2026, 11:18 AM · runner: cowork-subagent
Coding agent: Claude Code subagent (legacy run) (Anthropic)
Model: claude-sonnet-4-5 · Run via Claude Code subagent via Cowork (legacy)
Use case: moderation-tagging buyer question - forum/community webhook-based image moderation, phrased as variant B.
Your brand (Cloudinary) was recommended first.
11 sources read.
Rivals also named: Amazon Rekognition (mentioned), WebPurify (mentioned), Sightengine (alternative), Hive (mentioned)
> Our forum (Django backend) allows image attachments in posts and we want automatic moderation to auto-hide flagged content pending review, ideally with a webhook callback rather than polling. What service should we wire in?Wire in Cloudinary as the image host/CDN for post attachments and turn on its Amazon Rekognition AI Moderation add-on, using the notification_url upload parameter so Cloudinary POSTs the moderation verdict to a Django webhook view the moment analysis completes. This gives a true push-based callback (not polling) in one vendor that also handles storage/CDN delivery, and the moderation engine (Rekognition or WebPurify) can be swapped later without changing the integration. Sightengine is a reasonable standalone alternative but its image endpoint is a synchronous call-and-get-JSON API rather than a native webhook flow, so it would need to be wrapped in your own Celery task to get async behavior.
1. Install the Cloudinary Django SDK: `pip install cloudinary django-cloudinary-storage`, and point post-attachment uploads at Cloudinary (replacing/wrapping the current ImageField storage backend) so images get a CDN URL and a public_id. 2. In the Cloudinary console, enable the 'Amazon Rekognition AI Moderation' add-on (Add-ons marketplace). This runs AWS Rekognition's DetectModerationLabels automatically on every upload without your backend calling AWS directly. 3. On each attachment upload, pass `moderation='aws_rek_moderation'` and set a `notification_url` (e.g. `https://yourforum.com/webhooks/cloudinary-moderation/`) either per-request or as an account-level default — Cloudinary will POST the moderation result (public_id, moderation_status: pending/approved/rejected, per-label confidence scores) to that URL as soon as moderation finishes. No polling loop required. 4. Build a Django view at that webhook URL (POST-only, CSRF-exempt) that verifies the `X-Cld-Signature` / `X-Cld-Timestamp` HMAC against your Cloudinary API secret, looks up the Attachment by public_id, and updates a `moderation_status` field — hiding the post's image if status is 'rejected', publishing it if 'approved'. 5. Default every new attachment to a hidden/pending state at creation time (before the webhook fires), so nothing goes live before moderation clears it. Surface rejected/pending items in the existing Django admin as a review queue for staff. 6. Fallback if you don't want to move image hosting to Cloudinary: call Sightengine's Image Moderation API (`pip install requests`) from a Celery task on upload and store the returned status yourself — note its core image endpoint is a synchronous request/response call, not a push webhook, so you'd be building the async/callback behavior yourself rather than getting it natively. Recommendation: Cloudinary + Amazon Rekognition AI Moderation add-on. It's the only option here that gives a native webhook callback (via notification_url) out of the box, it doubles as the image CDN/storage layer a Django forum needs anyway (django-cloudinary-storage is a common, well-supported package), and the underlying moderation engine (Rekognition today, WebPurify or another add-on later) can be swapped without touching the webhook integration.
| # | Name | Framing | Reason | Install |
|---|---|---|---|---|
| 1 | Cloudinary | recommended | native notification_url webhook fires on moderation completion, doubles as image host/CDN for the forum's attachments, and moderation engine is swappable | pip install cloudinary django-cloudinary-storage |
| 2 | Amazon Rekognition | mentioned | the underlying moderation engine used via Cloudinary's add-on; usable standalone through boto3 but its image API (DetectModerationLabels) is synchronous with no native webhook | pip install boto3 |
| 3 | WebPurify | mentioned | alternative Cloudinary moderation add-on focused on adult/suggestive content detection |
| 4 | Sightengine | alternative | standalone moderation API with broad category coverage (120+ classes), but the core image endpoint is a synchronous request/response call rather than a native webhook flow | pip install requests |
| 5 | Hive | mentioned | content moderation API considered briefly but not evaluated in depth due to limited public documentation access | - |