## ## .htaccess -- Apache Per-Directory Configuration ## # do not generate auto-index of directory Options -Indexes # attempt to prevent that fonts are loaded without our pages # RewriteEngine on # RewriteCond %{HTTP_REFERER} !^http?://([^.]+\.)*example\.com/.*$ [NC] # RewriteRule \.(eot|woff|ttf|svg)$ - [NC,F,L] # provide reasonable MIME content-types 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 # compress all fonts (except already compressed WOFF) AddOutputFilter DEFLATE eot ttf svg