14 lines
765 B
ApacheConf
14 lines
765 B
ApacheConf
ErrorDocument 404 /404.html
|
|
|
|
<FilesMatch "\.(ico|svg|avif|webp|jpg|jpeg|png|gif|woff2)$">
|
|
Header set Cache-Control "max-age=31536000, public"
|
|
</FilesMatch>
|
|
<FilesMatch "\.(css|js)$">
|
|
Header set Cache-Control "no-cache, public"
|
|
</FilesMatch>
|
|
|
|
RewriteEngine on
|
|
|
|
# Block bad bots
|
|
RewriteCond %{HTTP_USER_AGENT} Amazonbot|Applebot-Extended|Bytespider|CCBot|ChatGPT-User|Claude-Web|ClaudeBot|Diffbot|FacebookBot|FriendlyCrawler|GPTBot|Google-Extended|GoogleOther|GoogleOther-Image|GoogleOther-Video|ICC-Crawler|ImagesiftBot|Meta-ExternalAgent|Meta-ExternalFetcher|OAI-SearchBot|PerplexityBot|PetalBot|Scrapy|Timpibot|VelenPublicWebCrawler|YouBot|anthropic-ai|cohere-ai|facebookexternalhit|img2dataset|omgili|omgilibot [NC]
|
|
RewriteRule .* https://nocommercialuse.org/ [L] |