Created
April 5, 2012 16:55
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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