Escape whitespace in user agent names

This commit is contained in:
Helen Chong 2024-10-05 15:30:19 +08:00
parent 0c2a819b7d
commit dfc929ad08
1 changed files with 2 additions and 3 deletions

View File

@ -20,7 +20,6 @@ RewriteRule ^.+$ index.php [L]
</IfModule>
# Block bad bots
RewriteEngine On
RewriteCond %{HTTP_USER_AGENT} (AI2Bot) [NC,OR]
RewriteCond %{HTTP_USER_AGENT} (Ai2Bot-Dolma) [NC,OR]
RewriteCond %{HTTP_USER_AGENT} (Amazonbot) [NC,OR]
@ -41,14 +40,14 @@ RewriteCond %{HTTP_USER_AGENT} (GoogleOther-Video) [NC,OR]
RewriteCond %{HTTP_USER_AGENT} (ICC-Crawler) [NC,OR]
RewriteCond %{HTTP_USER_AGENT} (ISSCyberRiskCrawler) [NC,OR]
RewriteCond %{HTTP_USER_AGENT} (ImagesiftBot) [NC,OR]
RewriteCond %{HTTP_USER_AGENT} (Kangaroo Bot) [NC,OR]
RewriteCond %{HTTP_USER_AGENT} (Kangaroo\ Bot) [NC,OR]
RewriteCond %{HTTP_USER_AGENT} (Meta-ExternalAgent) [NC,OR]
RewriteCond %{HTTP_USER_AGENT} (Meta-ExternalFetcher) [NC,OR]
RewriteCond %{HTTP_USER_AGENT} (OAI-SearchBot) [NC,OR]
RewriteCond %{HTTP_USER_AGENT} (PerplexityBot) [NC,OR]
RewriteCond %{HTTP_USER_AGENT} (PetalBot) [NC,OR]
RewriteCond %{HTTP_USER_AGENT} (Scrapy) [NC,OR]
RewriteCond %{HTTP_USER_AGENT} (Sidetrade indexer bot) [NC,OR]
RewriteCond %{HTTP_USER_AGENT} (Sidetrade\ indexer\ bot) [NC,OR]
RewriteCond %{HTTP_USER_AGENT} (Timpibot) [NC,OR]
RewriteCond %{HTTP_USER_AGENT} (VelenPublicWebCrawler) [NC,OR]
RewriteCond %{HTTP_USER_AGENT} (Webzio-Extended) [NC,OR]