Added by AlexL over 11 years ago
Hi,
it is possible to write a Rewrite Rule based on the HTTP Origin Header?
I looked at http://redmine.lighttpd.net/projects/lighttpd/wiki/Docs_Configuration and there doesn't seem to be a $HTTP['Origin']
Is there another way to get this information?
What I'm trying to do is convert this Apache Rule to Lighttpd:
RewriteEngine On
RewriteCond %{HTTP:Origin} !^$|http(s)?://(www\.)?example\.com$ [NC]
RewriteRule \.(woff|eot)$ - [NC,L]
RewriteCond %{HTTP_REFERER} !.
RewriteRule \.(woff|eot)$ - [F,NC,L]