N
Nitin
I want to redirect users to my hope page if the referrer is not my domain,
how can i do that??. I've been using this code in session_start it doesn't
seem to work all the time
Thanx
Nitin
Try
If Request.UrlReferrer Is Nothing Then
If InStr(Request.Path.ToLower, "/default.aspx") = 0 Then
Response.Redirect("Default.aspx")
End If
Else
If InStr(Request.UrlReferrer.ToString, "mydomain") = 0 Then
Response.Redirect("default.aspx")
End If
End If
Catch ex As Exception
Response.Redirect("default.aspx")
'Response.Write(Request.UrlReferrer.ToString)
End Try
how can i do that??. I've been using this code in session_start it doesn't
seem to work all the time
Thanx
Nitin
Try
If Request.UrlReferrer Is Nothing Then
If InStr(Request.Path.ToLower, "/default.aspx") = 0 Then
Response.Redirect("Default.aspx")
End If
Else
If InStr(Request.UrlReferrer.ToString, "mydomain") = 0 Then
Response.Redirect("default.aspx")
End If
End If
Catch ex As Exception
Response.Redirect("default.aspx")
'Response.Write(Request.UrlReferrer.ToString)
End Try