.htaccess und Baidu Spider

Ich hab Probleme mit einem sehr schnell wachsenden http Cache. Wenn ich mir die Dateien ansehe, dann ist jede 3. oder 4. mit “http://www.baidu.com/” Da wir nicht nach China verkaufen, würde ich daher gerne den Baidu Spider ausschließen… Ich brauche allerdings Hilfe bei der .htaccess :frowning: das hier hab ich im Netz gefunden: [quote]RewriteCond %{HTTP_USER_AGENT} ^Baiduspider.* [NC][/quote] Wäre das so korrekt? [quote]
RewriteEngine on

#RewriteBase /shopware/

RewriteRule shopware.dll shopware.php
RewriteRule files/documents/.* engine [NC,L]
RewriteRule backend/media/(.*) media/$1 [NC,L]

RewriteCond %{HTTP_USER_AGENT} ^Baiduspider.* [NC]
RewriteCond %{REQUEST_URI} !(/(engine|files|templates)/)
RewriteCond %{REQUEST_URI} !(/media/(archive|banner|image|music|pdf|unknown|video)/)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ shopware.php [PT,L,QSA]
# Staging-Rules start #SetEnvIf Host “staging.test.shopware.in” ENV=staging DirectoryIndex index.html DirectoryIndex index.php DirectoryIndex shopware.php # Disables download of configuration
Deny from all
# Enable gzip compression #

AddOutputFilterByType DEFLATE text/html text/xml text/plain text/css text/javascript application/json

AddOutputFilterByType DEFLATE text/plain text/html text/xml
AddOutputFilterByType DEFLATE text/css text/javascript
AddOutputFilterByType DEFLATE application/xml application/xhtml+xml
AddOutputFilterByType DEFLATE application/rss+xml
AddOutputFilterByType DEFLATE application/javascript
AddOutputFilterByType DEFLATE application/x-javascript
AddOutputFilterByType DEFLATE application/json



ExpiresActive on
ExpiresDefault “access plus 1 month”
FileETag None

Header append Cache-Control “public”
Header unset ETag


# Disables auto directory index
Options -Indexes

Options -MultiViews

php_value memory_limit 128M

php_value max_execution_time 120

php_value upload_max_filesize 20M

php_flag phar.readonly off
php_flag magic_quotes_gpc off
php_flag session.auto_start off
php_flag suhosin.session.cryptua off
php_flag zend.ze1_compatibility_mode off
# AddType x-mapp-php5 .php # AddHandler x-mapp-php5 .php [/quote]