Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a way to check if a page has been landed on from an external source [closed]

Tags:

c#

asp.net

Using c#, I m looking to personalise a page if its the first page the user has come across.

I'm not concerned whether the solution is bulletproof because the feature is purely asthetical and can degrade.

It must use be an ASP.NET method, not JavaScript.

like image 239
John Ohara Avatar asked Jan 08 '23 12:01

John Ohara


1 Answers

with

Request.UrlReferrer.Host

you can get the URL of the client's previous request. But this won't work with https from external pages

like image 116
fubo Avatar answered Jan 26 '23 16:01

fubo