Click here to Skip to main content
15,891,529 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am using
C#
if (Request.ServerVariables["HTTP_REFERER"] != null)
                        {
                            Response.Redirect("AccessDenied.aspx", false);
                            return;
                        }

When request comes from Https it always redirects to access denied page while through http it is working properly.
suggest me.
Posted
Comments
John C Rayan 26-Nov-15 4:57am    
What are you trying to do. Your question is not very clear. Try to explain a bit more clearer.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900