Allow whitelisting certain domains with referrer

This addresses the issue #61