2024-07-28 12:16:47 +00:00
|
|
|
ErrorDocument 404 /404.html
|
2024-07-28 12:06:19 +00:00
|
|
|
|
2024-08-04 12:25:24 +00:00
|
|
|
<FilesMatch "\.(ico|svg|avif|webp|jpg|jpeg|png|gif|woff2)$">
|
2024-07-28 12:06:19 +00:00
|
|
|
Header set Cache-Control "max-age=31536000, public"
|
2024-07-30 16:29:39 +00:00
|
|
|
</FilesMatch>
|
|
|
|
<FilesMatch "\.(css|js)$">
|
|
|
|
Header set Cache-Control "no-cache, public"
|
2024-08-19 16:23:25 +00:00
|
|
|
</FilesMatch>
|
|
|
|
|
2024-08-19 16:25:27 +00:00
|
|
|
RewriteEngine on
|
|
|
|
|
2024-08-19 16:23:25 +00:00
|
|
|
# Block bad bots
|
2024-10-05 08:19:00 +00:00
|
|
|
RewriteCond %{HTTP_USER_AGENT} (AI2Bot|Ai2Bot-Dolma|Amazonbot|Applebot-Extended|Bytespider|CCBot|ChatGPT-User|Claude-Web|ClaudeBot|Diffbot|FacebookBot|FriendlyCrawler|GPTBot|Google-Extended|GoogleOther|GoogleOther-Image|GoogleOther-Video|ICC-Crawler|ISSCyberRiskCrawler|ImagesiftBot|Kangaroo.*Bot|Meta-ExternalAgent|Meta-ExternalFetcher|OAI-SearchBot|PerplexityBot|PetalBot|Scrapy|Sidetrade.*indexer.*bot|Timpibot|VelenPublicWebCrawler|Webzio-Extended|YouBot|anthropic-ai|cohere-ai|facebookexternalhit|iaskspider/2.0|img2dataset|omgili|omgilibot) [NC]
|
2024-08-19 16:23:25 +00:00
|
|
|
RewriteRule .* https://nocommercialuse.org/ [L]
|