[Moin-user] Stripping out wiki actions

Gnarlodious lists.gnarlodious at gmail.com
Fri Mar 14 11:58:26 EDT 2008


On 3/14/08, Roger Haase wrote:
> An apache
> rewrite statement is used to redirect requests for the site default
> index page to a wiki page.
As long as we are talking about URL rewriting, I have blocked access
to the actions menu due to search robots sucking huge amounts of
bandwidth:


# Block robot access to actions
RewriteCond %{QUERY_STRING} action=
RewriteCond %{REMOTE_ADDR} ^677 [OR]
RewriteCond %{REMOTE_ADDR} ^65\.55\.208\.7 [OR]
RewriteCond %{REMOTE_ADDR} ^208\.99\.195\.54 [OR]
RewriteCond %{REMOTE_ADDR} ^66\.249\.67\.82^ [OR]
RewriteCond %{HTTP_USER_AGENT} ^.*Slurp.*$ [OR]
RewriteCond %{HTTP_USER_AGENT} ^.*Jeeves.*$ [OR]
RewriteCond %{HTTP_USER_AGENT} ^Gigabot/ [OR]
RewriteCond %{HTTP_USER_AGENT} LiteFinder [OR]
RewriteCond %{HTTP_USER_AGENT} MJ12bot [OR]
RewriteCond %{HTTP_USER_AGENT} ConveraCrawler [OR]
RewriteCond %{HTTP_USER_AGENT} ^MSRBOT [OR]
RewriteCond %{HTTP_USER_AGENT} ^.*larbin.*$
RewriteRule . - [F]

This rule has improved performance in all kinds of ways. There is no
reason a robot need to execute every action available, it just
overloads the server.

-- Gnarlie




More information about the Moin-user mailing list