[Metalab Issues] #102: Combat Wiki Spam
Metalab Issues
issues at lists.metalab.at
Thu Apr 11 11:47:55 CEST 2013
#102: Combat Wiki Spam
---------------------+-----------------------
Reporter: msch | Owner: mzeltner
Status: accepted | Keywords: wiki, spam
---------------------+-----------------------
Comment (by mzeltner):
OK here you go:
{{{
RewriteMap ipslist txt:/etc/apache2/sites-available/bits/signup-whitelist
RewriteCond %{REMOTE_ADDR} ^(.*)$
RewriteCond %{REQUEST_METHOD} ^POST
RewriteCond ${ipslist:%1|black} ^black$ [NC]
# Proxying error page to let bots fail silently - also excluded from https
redirect
# because our proxy would fail on it not being lists.metalab.at
# (FUCKING SUBJECTALTERNATERECORD SUPPORT)
RewriteRule
^/wiki/index.php\?title=Spezial:Anmelden&action=submitlogin&type=signup
http://metalab.at/wiki/Signup-Error [P]
}}}
The whitelist mechanism itself works, but what's necessary is to make the
URL (last line) work. As far as I can tell this one doesn't get triggered
by the signup-page. Halp?
--
Ticket URL: <https://metalab.at/issues/ticket/102#comment:17>
Metalab Issues <https://metalab.at/issues>
Metalab is a Hackerspace in Vienna's first district.
More information about the issues
mailing list