A combination of your idea with Denilson comment, simpler to use: @font-face { font-family:'encrypt_sans'; src:url('encrypted_fonts/this_is_where_to_put_the_password.woff') format('woff2'); }