Click here to Skip to main content
15,887,214 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
There is whiteHat(hacker) security scan ran in our Project and they ask us block sensitive data from View Page source, Data like Account number, SSN number

So I have done my R & D on net and found that there is no Direct solution for this thing.

I don't want to disable right click

Does anybody have idea how we can achieve this ?

details :

Application - Web
Framework - Struts1.X


What I have tried:

I have tried encryption but it was not working
Posted
Updated 15-Feb-18 9:06am

1 solution

You can't. If a web browser can download and display the HTML, then so can the user.

Even if you found a way to prevent the browser from displaying the source to the user, they could use a tool like Fiddler or WireShark to capture and view the traffic between your server and the browser.

The only thing you can do is redact sensitive data on the server, so that the user can't see it; and make sure your site only uses HTTPS, to prevent eavesdropping on the traffic passing over the network.
 
Share this answer
 

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



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