Try looking at HttpRequest.UrlReferrer
http://msdn.microsoft.com/en-us/library/system.web.httprequest.urlreferrer.aspx
문제
My web.config is currently set up like so:
<customErrors mode="RemoteOnly" defaultRedirect="500.aspx" redirectMode="ResponseRewrite">
<error statusCode="404" redirect="404.aspx" />
<error statusCode="403" redirect="403.aspx" />
</customErrors>
Is there any way to figure out from what url a user got redirected to the 403 from?
해결책
Try looking at HttpRequest.UrlReferrer
http://msdn.microsoft.com/en-us/library/system.web.httprequest.urlreferrer.aspx