Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6952709
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T14:23:03+00:00 2026-05-27T14:23:03+00:00

I am facing a problem here regarding the protection of jsps and servlets. When

  • 0

I am facing a problem here regarding the protection of jsps and servlets. When somebody views page source then s/he can view the signout link in jsp page which should not be shown. For example when somebody will view the page source then it is written that a href=”signout.jsp” then I think it is unsafe and if somebody will click on that signout link then automatically session is invalidated but it should be totally prohibited. How can I protect the jsp page so that when somebody tries to view page source then s/he cannot view such sensible links? Any help is appreciated.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T14:23:03+00:00Added an answer on May 27, 2026 at 2:23 pm

    How can I protect the jsp page so that when somebody tries to view page source then s/he cannot view such sensible links?

    You can’t. The link has to be in the HTML (or something else) delivered to the user’s browser, and you cannot prevent a human from getting hold of it.

    The correct strategy is to implement server-side checks to stop the supposedly harmful request from being run when it shouldn’t be used. For instance, certain requests should be limited to logged in users, administrators, and so on.

    But in this case, what is the harm in the user signing out if he / she wants to? If you try to prevent it, the user can just close the browser, turn off his PC and walk away.


    How can i encrypt page source?

    Same answer. You can’t. The user’s browser needs to see the source in unencrypted form in order display it. Your server’s response is delivered to a program running on the user’s machine, and you can’t stop the programming doing what the user wants. And that includes showing the user the source of the page in unencrypted form.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

im facing a problem regarding my .htaccess file here is the code within the
I'm facing a problem here, with HttpListener. When a request of the form http://user:password@example.com/
I am facing a problem on developing my web app, here is the description:
I'm facing a huge problem here which is driving me crazy, I've made an
i am facing this problem here. i want to show item's name by getting
I'm here facing a problem with a Java web project. The project I'm working
Here I am facing a problem that I want to pass a dataset to
I'm facing a problem with the android broadcast receiver. I have a login page
I'm facing a problem using IE here. I need to insert a form on
I'm facing a bit of an odd problem here. I just launched: http://claudiu.phpfogapp.com/ To

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.