There is any way to block the direct access to a file? The file should be used on my website but i want to block it if someone access it directly, for example if you open this link: https://example.com/style.css you see an error message, but if you open the site, all the style sheet should be shown.
An example of this is the pro fontawesome css https://pro.fontawesome.com/releases/v5.8.1/css/all.css
You can't open this directly, but if you add this to your site and your domain is listed you can use the fonts.
Do you know any way to do this?