SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Enthusiast
    Join Date
    Sep 2005
    Posts
    27
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    How can I prevent the user to navigate within files?

    Hello,
    I have an application that has to be accessed by the user by index.jsp
    Now, this file calls other jsp files.... sometimes, the files are shown in the address bar.
    Now, I don't want the user to be able to execute directly those files (if he enters the filename url in the address bar). I want to force the user to start with index.jsp
    Is there a simple way of preventing the user from navigater within the files?

    THanks

  2. #2
    Caveat surfer Buddy Bradley's Avatar
    Join Date
    May 2003
    Location
    Cambridge, UK
    Posts
    2,366
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Wrong forum, but never mind. I guess the filenames of the other files appear in the address bar because they are passed in the querystring to the main JSP script? Either find another way of passing those filenames around, or add some code in the action for those pages to redirect to index.jsp.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •