Skip to content

Instantly share code, notes, and snippets.

@railmedia
Created April 10, 2025 06:32
Show Gist options
  • Select an option

  • Save railmedia/5e1d0a1301d8f5d151065f1e67455f26 to your computer and use it in GitHub Desktop.

Select an option

Save railmedia/5e1d0a1301d8f5d151065f1e67455f26 to your computer and use it in GitHub Desktop.
Prevent font download
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTP:Origin} [COLOR=red]!^$|http(s)?://(www\.)?beispiel\.de$ [NC]
RewriteRule \.(woff|woff2|eot|ttf)$ - [NC,L]
RewriteCond %{HTTP_REFERER} !.
RewriteRule \.(woff|woff2|eot|ttf)$ - [F,NC,L]
Options -Indexes
</IfModule>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment