Redirection page

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • PrabodhanP
    New Member
    • Apr 2009
    • 14

    Redirection page

    I have login page(which is in asp) on my website which is default page.If I logged in ,it will redirct to www.sitename.com/filename.html. This file is in pure html, javascript . But suppose someone type this url i.e. www.sitename.com/filename.html directly in address bar he can view this page without login if I am right.How can I avoid this?
    I dont want to build these all html pages again in asp. Is there any javascript validation/cookies to avoid this situation.Pleas e suggest.
  • anon538
    New Member
    • Sep 2007
    • 23

    #2
    Yes, someone could just type the address and view the page. JS cookies will prevent most from being able to access the page, but recognize that this would be a completely insecure method, as JS and cookies are client side technologies. Any user with a bit of JS knowledge could delete, edit, or add a cookie that your website would interpret as valid. If the page's content is something that needs to be kept secure, you will need to recode it using a server side technology like ASP. If its something that you don't really want all of your users looking at but wouldn't be harmful if they did, go ahead and use cookies.

    Comment

    Working...