[HCoop-Discuss] Require explicit privileges to post to the wiki?

Ron Senykoff freat at hcoop.net
Tue Dec 16 13:43:53 EST 2008


Something that works well to effectively stop spam in MoinMoin is to
not let someone in who targets the UserPreferences page without a
referrer. This prevents spam bots that specifically hit the moinmoin
UserPreferences page URL from getting in.

# Block unreferred scripts from creating accounts
RewriteCond %{REQUEST_URI} UserPreferences
RewriteCond %{HTTP_REFERER} ^$
RewriteRule /UserPreferences - [F]

Just this one rule will stop most all of the spam.

HTH,
-Ron



More information about the HCoop-Discuss mailing list