Redirect based on where request comes from

Can one redirect a request depending on where the request is coming from, e.g. based on the referer header?

We like to redirect all requests from a certain url to a special page.

Not in our normal redirects functionality.

You may be able to use something like a function: https://docs.netlify.com/functions/overview/ to either execute some logic and render content conditionally (“for referrers that contain //google.com/, show landing page text ; otherwise show login box”), or to “gate” access based on some logic (e.g. return a javascript client-side redirect back to landing page unless referrer is already from a specific domain)

More literally, yes, you can redirect based on geographic location, but I am pretty sure that is not what you meant: https://docs.netlify.com/routing/redirects/redirect-options/#redirect-by-country-or-language