From 832c873dff5d33a6d235fbdb11c314bbfcecc02e Mon Sep 17 00:00:00 2001 From: "Kyle J. McKay" Date: Sun, 27 Sep 2015 14:59:07 -0700 Subject: [PATCH] htaccess: make the Slurp/Bot/Spider tests case insensitive Signed-off-by: Kyle J. McKay --- htaccess | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/htaccess b/htaccess index 952912c..fc4b9ba 100644 --- a/htaccess +++ b/htaccess @@ -1,18 +1,18 @@ RewriteEngine On -RewriteCond %{HTTP_USER_AGENT} ([sS]lurp|[bB]ot|[sS]pider) +RewriteCond %{HTTP_USER_AGENT} (Slurp|Bot|Spider) [NC] RewriteRule ^r/ - [F,L] -RewriteCond %{HTTP_USER_AGENT} ([sS]lurp|[bB]ot|[sS]pider) +RewriteCond %{HTTP_USER_AGENT} (Slurp|Bot|Spider) [NC] RewriteCond %{QUERY_STRING} a=(blame|blob_plain|blobdiff|diff|snapshot|commitdiff|history|shortlog) [OR] RewriteCond %{QUERY_STRING} a=log.*f= RewriteRule .* - [F,L] -RewriteCond %{HTTP_USER_AGENT} ([sS]lurp|[bB]ot|[sS]pider) +RewriteCond %{HTTP_USER_AGENT} (Slurp|Bot|Spider) [NC] RewriteRule /(blame|blob_plain|blobdiff|diff|snapshot|commitdiff|history|shortlog)/ - [F,L] RewriteBase / -RewriteCond %{HTTP_USER_AGENT} ([sS]lurp|[bB]ot|[sS]pider) +RewriteCond %{HTTP_USER_AGENT} (Slurp|Bot|Spider) [NC] RewriteCond %{QUERY_STRING} (.*h=.*;)hb=[^;]*(.*) RewriteRule (.*) $1?%1%2 [R=303,NE,L] -- 2.11.4.GIT