Comment 40 for bug 224971

Revision history for this message
Matthew Nuzum (newz) wrote :

Last I've checked (about 3 min ago) you could not use regex to match in robots.txt (please show me documentation to prove I'm wrong on this). I've asked around and our version of Moin doesn't provide much to prevent this either.

The only thing I can even begin to suggest is to use a RewriteCond to check %{QUERY_STRING} for action=AttachFile.*(htm|html|js)$ and do a redirect to some help page explaining the types of attachments allowed.

That regex is rough and would need to be rewritten to handle the re-ordering of params but should work for most cases since it matches the ordering that moin uses by default.

I will point this out to the proper people who can configure the apache server to see if they're willing to enable it.