You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

29 lines
870 B

##
## .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>