Tag Info

Hot answers tagged


Your regex code in general is wrong. Try instead something like this: RewriteCond %{HTTP_USER_AGENT} (.*Baiduspider.*|.*DV.*CRAWLER.*) [NC] You are matching against a string in each iteration between the parenthesis () separated by the pipe character | whereas .* is a wild card that matches anything. Optionally you can use \s or \s+ for spaces but .* ...

Only top voted, non community-wiki answers of a minimum length are eligible