Developer forum

Forum » CMS - Standard features » HTTP_REFERER
Tom-Erik Paulsen
Reply

Is there a tag that I can check the  HTTP_REFERER value with? Some of our medical sites require som check on what kind of "visitor" it delivers content to. And requires a HTTP_REFERER check to give the reader a choice if the come from other urls.


Replies

 
Nicolai Høeg Pedersen
Reply

Hi Tom-Erik

You can do that check in Razor using UrlReferer: https://msdn.microsoft.com/en-us/library/system.web.httprequest.urlreferrer(v=vs.110).aspx

 

You must be logged in to post in the forum