Prompt
I'm building a marketplace and need to block scammy listings before publish
Latest observation
A good way to do this is to combine hard rules, risk scoring, and human review for borderline cases. If you rely on only one layer, scammers will usually find a way around it.
1) Block obvious scams with deterministic rules
Start with rules that can reject a listing immediately, such as:
- Prohibited categories/items
- Counterfeit goods
- Drugs, weapons, stolen goods
- Financial scams, investment fraud, fake jobs
- Contact info leakage
- Phone numbers, email addresses, WhatsApp/Telegram handles in the description or images
- External payment redirection
- “Pay me directly,” “wire transfer only,” crypto-only, cashapp/venmo-only if not allowed
- Off-platform lead generation
- “Visit my website,” “DM on Instagram,” “contact outside the platform”
- Suspicious urgency language
- “Must sell today,” “limited time only,” “act now,” “deposit required”
- Price anomalies
- Price far below market for high-demand items
- Extreme markdowns with vague descriptions
- Duplicate/spam behavior
- Same title/description/image reused across many listings or accounts
- Unsafe location patterns
- Mismatch between seller location and item availability
- Impossible shipping claims or fake local pickup claims
2) Score risk instead of binary blocking
Many scammy listings aren’t obviously illegal. Use a score based on signals like:
- New account age
- No verified identity or payment method
- High number of listings in a short time
- Reused or stock images
- Description length too short or overly generic
- Too many contact/payment keywords
- Price much lower than category median
- Category-specific fraud patterns
- Previous reports or moderation history
Then define thresholds:
- Low risk: auto-publish
- Medium risk: publish after delayed review or soft hold
- High risk: reject or require manual review
3) Use image checks too
Scammers often rely on images to bypass text filters.
Check for:
- Stock photos or web-scraped images
- Low-effort collage images
- Watermarks from other marketplaces
- OCR text in images containing phone numbers, emails, URLs, QR codes
- Repeated image hashes across different sellers
4) Category-specific policies
Different marketplaces need different rules. For example:
- Electronics: block IMEI scams, “factory unlocked” claims with no proof, suspiciously low prices
- Jobs: block fees to apply, “work from home” get-rich-quick schemes, crypto/MLM hiring
- Real estate: block fake rentals, deposit scams, vague addresses
- Vehicles: block “title in hand” fraud, VIN mismatch, unrealistic prices
- Services: block advance fee scams and impersonation
5) Add seller trust signals
Listings from trusted sellers can be treated differently:
- Account age
- Identity verification
- Successful transaction history
- Low complaint rate
- Fast dispute resolution
- Verified business status
This helps reduce false positives for legitimate sellers.
6) Human review for edge cases
You’ll need moderation for:
- High-value listings
- New sellers in high-risk categories
- Listings with mixed signals
- Appeals from blocked users
Give moderators a reason code, not just “flagged,” so they can review quickly.
7) Build an explainable moderation pipeline
When a listing is blocked, return clear reasons internally, like:
- “Contains phone number”
- “Price 87% below category median”
- “Image matches previously removed listing”
- “Contains external payment request”
This helps with appeals and tuning.
8) Continuously improve with feedback
Track:
- False positive rate
- False negative rate
- Moderator overturn rate
- User reports after publish
- Repeat offender patterns
Then adjust rules and scoring thresholds over time.
9) Practical starting implementation
A simple first version might look like:
- Normalize text: lowercase, remove punctuation, detect obfuscation like “@ gmail dot com”
- Run rule-based filters
- Extract features
- price deviation
- account age
- keyword counts
- OCR/text from images
- hash similarity
- Compute risk score
- Decision
- score < 30: publish
- 30–70: review
-
70: block
10) Don’t forget abuse-resistant design
Scammers adapt, so make sure:
- Rules can be updated without redeploying code
- You log every moderation decision
- You can add category-specific rules
- You rate-limit listing creation
- You detect account farms and sybil behavior
If you want, I can help you design:
- a scam-detection ruleset,
- a risk scoring model, or
- a moderation architecture for your marketplace.