Many web font licenses require that the fonts files are hosted with some basic protections against direct downloads and the use on other websites (hotlink protection).
Moreover, the web server must be configured in such a way that the web fonts cannot be easily downloaded via the input of a URL in the browser or a wget command. This is known as hotlink protection. In addition, you must ensure that the fonts cannot be linked by third party web pages.
I haven’t found a way in the Netlify documentation to e.g. restrict the access of a certain path such as
fonts/* to requests with a HTTP header
Referer: https://example.com/*, which is what would be necessary to comply with these requirements.
Is there a way to add hotlink protection for certain routes or file types, short of routing all font requests through Netlify Functions?