Bring Drag & Drop to Dash with Dashboard Engine. 💫 Learn how at our next webinar!

Https Referrer Check

Hey Everyone! I was wondering whether anyone might be able to help me set up a basic referrer check for my Dash website. I want to see what website a user is coming from (check the request’s referrer) and only display the Dash web application if the user is coming in from an allowed website. I was looking into Flask’s request.headers.get(“Referer”) method but I’m unsure how to incorporate that into my multipage Dash application. Any help on this would be massively appreciated! (I’m aware that it’s not a great form of security, but I think that it would act as a good first step to securing my application without increasing the barrier of entry for the users!) Thanks in advance!