bigheadedd Posted January 6, 2012 Share Posted January 6, 2012 Hi, I'm currently hosting some fonts on my website for use with @font-face, and have restricted access to them via my website only. However I have multiple domains. How can I add multiple domains to this piece of code? Sorry, bit out of my depth when it comes to the syntax of these things! SetEnvIf Referer example-domain\.co.uk localreferer <FilesMatch \.(eot|woff|ttf|svg)$> Order deny,allow Deny from all Allow from env=localreferer </FilesMatch> Thanks in advance Edd Quote Link to comment https://forums.phpfreaks.com/topic/254486-local-referers/ Share on other sites More sharing options...
trq Posted January 6, 2012 Share Posted January 6, 2012 You just need to define multiple variables, then use multiple allow clauses, eg; SetEnvIf Referer foo\.com foo_referer SetEnvIf Referer example-domain\.co.uk example_referer <FilesMatch \.(eot|woff|ttf|svg)$> Order deny,allow Deny from all Allow from env=foo_referer Allow from env=eample_referer </FilesMatch> Quote Link to comment https://forums.phpfreaks.com/topic/254486-local-referers/#findComment-1304867 Share on other sites More sharing options...
bigheadedd Posted January 6, 2012 Author Share Posted January 6, 2012 Hi, Thanks for this! Worked a charm! Quote Link to comment https://forums.phpfreaks.com/topic/254486-local-referers/#findComment-1304884 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.