##
##  .htaccess -- Apache Per-Directory Configuration
##

#   do not generate auto-index of directory
Options -Indexes

#   attempt to prevent that fonts are loaded without our pages
<IfModule rewrite_module>
    # RewriteEngine on
    # RewriteCond   %{HTTP_REFERER} !^http?://([^.]+\.)*example\.com/.*$ [NC]
    # RewriteRule   \.(eot|woff|ttf|svg)$ - [NC,F,L]
</IfModule>

#   provide reasonable MIME content-types
<IfModule mime_module>
    AddType application/vnd.ms-fontobject eot
    AddType application/font-woff         woff
    AddType application/font-woff2        woff2
    AddType application/x-font-ttf        ttf
    AddType image/svg+xml                 svg
    AddEncoding gzip                      svgz
</IfModule>

#   compress all fonts (except already compressed WOFF)
<IfModule deflate_module>
    AddOutputFilter DEFLATE eot ttf svg
</IfModule>

