I have a block of code that prevents URL hacking to a page by checking the URL referrer
if (filterContext.RequestContext.HttpContext.Request.UrlReferrer == null)
{
// redirect somewhere else
}
Ideally, it's to stop someone looking at record details pages by just changing the ID (so, persons/1, persons/2 etc)
Now this is fine if the referrer hasn't been stripped by the browser, but what if it is. Is there a workaround to this at all?
I'm using C# MVC