Forum     

Go Back   Digit Technology Discussion Forum > Portables, Peripherals and Electronics > QnA (read only)
Register FAQ Calendar Mark Forums Read

QnA (read only) Mods please help transfer the contents of this forum to proper sections. :)


 
 
LinkBack Thread Tools Search this Thread Display Modes
Old 22-08-2006, 02:20 PM   #1 (permalink)
Right Off the Assembly Line
 
nikku12982's Avatar
 
Join Date: Jul 2006
Posts: 32
Question how to block image copying from html page..


is there any way to block right click option and also saving image through html page ..pls help... any code or any tricks
nikku12982 is offline  
Advertisements. Register and be a member of the community to get rid of them.
Advertisement

Old 22-08-2006, 03:55 PM   #2 (permalink)
Broken In
 
Anand_RF's Avatar
 
Join Date: Jan 2006
Location: Uranus
Posts: 183
Default Re: how to block image copying from html page..

No you cant stop anyone from saving images on a page. As for the right-click block, there is a code which works only for IE, not for firefox or opera.
And I don't know it. But I think you can find the code at www.hotscripts.com
Anand_RF is offline  
Old 22-08-2006, 05:36 PM   #3 (permalink)
Human Spambot
 
Join Date: Nov 2004
Location: Madurai
Posts: 2,349
Default Re: how to block image copying from html page..

Even with that, you just have to disable javascript and the file will be accessible... I think what you can do is create a flash file and embed the jpeg within it... The flash file may be retrievable but the image may not be available, but I am not sure about this.

Arun
sakumar79 is offline  
Old 22-08-2006, 05:49 PM   #4 (permalink)
Alpha Geek
 
NikhilVerma's Avatar
 
Join Date: May 2004
Location: India
Posts: 930
Default Re: how to block image copying from html page..

You can never do that even with flash people can just use the ScreenCopy button and paste it in notepad for the image.
NikhilVerma is offline  
Old 22-08-2006, 05:55 PM   #5 (permalink)
Google Bot
 
Pathik's Avatar
 
Join Date: Aug 2005
Posts: 9,772
Default Re: how to block image copying from html page..

i think u mean print screen and paint....
and that has a low quality...
Pathik is offline  
Old 24-08-2006, 02:52 PM   #6 (permalink)
The Researcher
 
Join Date: Mar 2006
Location: Mumbai
Posts: 1,122
Default Re: how to block image copying from html page..

Even images in flash file can be retrieved using SWF decompiler.
Ramakrishnan is offline  
Old 24-08-2006, 04:40 PM   #7 (permalink)
In The Zone
 
hafees's Avatar
 
Join Date: Feb 2004
Location: Kerala
Posts: 405
Default Re: how to block image copying from html page..

If a person is determined to save an image from the web page, no one can restrict him.

But these three methods can be used to restrict a casual user from saving images.
1. Disabling the right click button : by using the oncontextmenu
eg: <body oncontextmenu="return false;"> .(It does nt need to be on the body tag. instead, it can be given to the DIV tag where the image is displayed)
Problems : IE and FF will work as intented. But opera doesnt know about the oncontextmenu. so it willnot work with Opera

2. By giving the original image as background, and cover it with a transparent gif image using <img> tag. In this way, when the user rightclicks and saves the image, the transparent image will be saved. In this way user is fooled.

3. Using Flash.

But all three are not perfect solutions. Methods 1 & 2 are easily tampered by saving the webpage to a local folder and then any can find the required image.

The flash method is also not very useful coz, there are decompilers which will save all files embedded in the flash movie.
__________________
Quitters Never Win & Winners Never Quit!
hafees is offline  
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


 
Latest Threads
- by abhidev
- by Sarath
- by clmlbx
- by ico
- by clinton

Advertisement




All times are GMT +5.5. The time now is 02:01 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.

Search Engine Optimization by vBSEO 3.3.2