Skip to content

Instantly share code, notes, and snippets.

@gjoseph
Created April 5, 2012 16:55
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 gjoseph/2312493 to your computer and use it in GitHub Desktop.
Save gjoseph/2312493 to your computer and use it in GitHub Desktop.
Can you bots stop hammering my SVN server via ViewVC? You really don't need to index all revisions of all files, kthxbye
# Exclude bots for requests with a query string, with the exception of the view=log query: bots can see the file's latest revision (no query string), or the log.
RewriteCond %{HTTP_USER_AGENT} bot [nocase]
RewriteCond %{QUERY_STRING} !(^view=log$|view=log&log_pagestart=[0-9]+$|^$)
RewriteRule /view/.* - [F,L]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment