Forum Moderators: phranque
# if the HTTP Referer header is blank
RewriteCond %{HTTP_REFERER} ^$
# and if request was sent to any variation of my domain
RewriteCond %{HTTP_HOST} ^([a-z0-9]+(-?[a-z0-9]+)+\.)?mywebiste\.com(\.|\.?:[0-9])?$ [NC]
# reverse-proxy the request to the lighttpd back-end
RewriteRule ^/media/videos/tmb(/.*)?$ http://0.0.0.0:81/media/videos/tmb/$1 [P]