Skip to content

Instantly share code, notes, and snippets.

@dirtyhenry
Last active January 2, 2016 09:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dirtyhenry/8280797 to your computer and use it in GitHub Desktop.
Save dirtyhenry/8280797 to your computer and use it in GitHub Desktop.
Spam identification for SPIP 3
SELECT auteur, email_auteur, LEFT(texte, 50)
FROM spip_forum
WHERE LEFT(texte, 20) LIKE '%http%'
AND statut <> 'spam'
ORDER BY maj DESC;
UPDATE spip_forum
SET statut='spam'
WHERE LEFT(texte, 20) LIKE '%http%'
AND statut <> 'spam';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment