• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 278
  • Last Modified:

How to protect a web page data so that no one can copy data from web page by right clicking on page?

i have some confidential info that i have to shown on web page but i want that no one can copy that data by just rightclick and copy on web page.

need help

0
reval1
Asked:
reval1
  • 3
  • 3
  • 3
  • +6
7 Solutions
 
DabasCommented:
Hi reval1,
My bank does just that and I find it extremely annoying.
I can still use Ctrl-C to copy though, so big deal

Dabas
0
 
reval1Author Commented:
hi Dabas
   i think if we show data in picture format that it can be manage but
   can we show a dataset result in a pictuer or image control?

0
 
basicinstinctCommented:
you can disable right-click and other stuff through javascript, but it can be circumvented by anyone determined.

for example: http://www.hypergurl.com/norightclick.html
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
Ryan ChongCommented:
You may use something like a Flash / Java Applet to display your content, so that it's NOT so easy to be copy by end user. Another suggestion is display your content via Streaming, but i'm not expert in this area...

hope this helps
0
 
GawaiCommented:
u can show any data in flash. so user cant copy and past from flash
0
 
jmar_clickCommented:
You can write data from your record set to an image if you're using php.

So you can create a small rectangular image on the fly and write data in it. To the end user it'll look like a picture.
0
 
jmar_clickCommented:
0
 
rockymageeCommented:
reval1,

There is no true way to keep users from obtaining a copy of information that is delivered via the web.

If all you are looking for is a right click disable script then here is a simple one:

<script language=JavaScript><!--
function clickIE4(){
 if (event.button==2){
  return false;
 }
}
function clickNS4(e){
 if (document.layers||document.getElementById&&!document.all){
  if (e.which==2||e.which==3){
   return false;
  }
 }
}
if (document.layers){
 document.captureEvents(Event.MOUSEDOWN);
 document.onmousedown=clickNS4;
}
else if (document.all&&!document.getElementById){
 document.onmousedown=clickIE4;
}
document.oncontextmenu=new Function("return false")
// --></script>
0
 
GawaiCommented:
rocky, i can still copy the data :(
0
 
minichickenCommented:
i also have to say there is no easy way to prevent copying of daya, there are too many ways to copy the data, using different browsers, etc... there are browsers that can rip flash off a site. If you do manage do all the prevention of copying from the site. The user could still use the Print Screen key to capture the screen of data.
0
 
recklezCommented:
There is NO way to prevent a user from copying the data. Period.
The moment the user requests a page from your web browser the page is actually saved on the users hard drive
along with all the images, flash objects etc. Anyone with some technical knowledge on the subject can copy your data
bit by bit. The only solution to solve this problem is not to serve the page at all but that defies the purpose of your service.

Even if you disable every electonic way of copying data, if I was the user that wanted to get your data I would grab a pen and a piece of paper and start writing.
0
 
jmar_clickCommented:
reval1,

Why do you want to stop users from copying the data in the first place? As minichicken, recklez, rockymagee have all said: there is no way to prevent a user from copying your data. You can make it somewhat harder for the novice user to get your data by disabling right clicking, dynamically creating images to display your data or using flash, but non of those will prevent someone from writing down what they want or doing a print screen or printing your page.

Why would you want to stop them from copying the data if you're displaying it to them in the first place?

Bottom line: If you don't want the users to have the information, don't provide it to them.

0
 
recklezCommented:
I beleive rockymagee, minichicken  and me (recklez) should get credit. We all pointed out that there is no solution to the problem reval1 is trying to solve which is a correct answer to his question.
0
 
Ryan ChongCommented:
No offence, but I think my suggestion may useful as well... so do I have some credits here as well? ; ) cheers...
0
 
GawaiCommented:
how about me ? my suggestion is too useful :)
0
 
recklezCommented:
Since there is no response from reval1, I would suggest to split the points between rockymagee, minichicken, recklez, ryancys and gawai.
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 3
  • 3
  • 3
  • +6
Tackle projects and never again get stuck behind a technical roadblock.
Join Now