Hello !
Do you know any lines to add in the htaccess to prevent the downloading of the fonts ?
Like having an error page on font hotlink…
Thank you !
Hello !
Do you know any lines to add in the htaccess to prevent the downloading of the fonts ?
Like having an error page on font hotlink…
Thank you !
Thats not strictly a Kirby question but 5 seconds on Google found this https://gist.github.com/grayghostvisuals/4465536
I tried this one… and a lot others however it still doesn’t work…
This should work :
RewriteCond %{HTTP_REFERER} !^http://(www\.)?yourdomain\.com/.*$ [NC]
RewriteRule \.(woff2|woff|otf|ttf|eot|svg)$ index.php [L]
Options -Indexes
You missed out woff2 format:
RewriteRule \.(woff2|woff|ttf|eot|svg|otf)$ index.php [L]
Oops. Just added it. 
Now it works !
Thanks ! 