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 09-02-2008, 10:19 PM   #1 (permalink)
In The Zone
 
Join Date: Oct 2006
Location: Jabalpur
Posts: 325
Question Secure Html Images ?


I want to secure my html images on website. Suppose when someone try to click right click on my image than the pop will comes and shows the "Please don't save my images". how should i do. What the code ?.
__________________
http://www.miraclesoftware.in

Authorized Software Distributor - Online Software Shopping
boosters is offline  
Advertisements. Register and be a member of the community to get rid of them.
Advertisement

Old 09-02-2008, 10:41 PM   #2 (permalink)
Wahahaha~!
 
Faun's Avatar
 
Join Date: Dec 2006
Location: Pune/there
Posts: 7,680
Default Re: Secure Html Images ?

javascript,
but a geek will always find a way to crack the measures.
__________________
Blog | Flickr | Battlelog
Spoiler:
Asus Z68 V-Pro|i5 2500k|TRUE Black|Ripjaws X|U2311H|N560GTX|D7000|XONAR STX|RE272|RE0|CC51|XE200PRO Walnut| TD II V2| Ultraphile|N5800

Mono
Faun is online now  
Old 09-02-2008, 10:55 PM   #3 (permalink)
हॉर्न ओके प्लीज़
 
victor_rambo's Avatar
 
Join Date: Sep 2007
Posts: 1,493
Default Re: Secure Html Images ?

To protect images, simply add a © -your name, your site name on the image. Be sure that the images originally belong to you.

The disabling right-click method can foll noobs but not people who are 'determined' to steal your image.
__________________
विक्टर रॅंबो - चाणकया प्रभावित व्यक्ति

गीक होना माँगता

Last edited by victor_rambo; 09-02-2008 at 11:01 PM.
victor_rambo is offline  
Old 09-02-2008, 11:05 PM   #4 (permalink)
The Devil's Advocate
 
iMav's Avatar
 
Join Date: Mar 2006
Location: Masti Ki Paathshaala
Posts: 7,019
Default Re: Secure Html Images ?

use watermarks+right click disable will definitely act as a deterrent
__________________
"The problem that shows up with the three red lights on the console is a complex interaction with some very complex parts.” - Robbie Bach

http://beingmanan.com
twitter: manan | Last.FM: manan
iMav is offline  
Old 10-02-2008, 08:35 AM   #5 (permalink)
Wise Old Owl
 
The Unknown's Avatar
 
Join Date: Nov 2006
Location: Pune, Maharashtra, India
Posts: 1,728
Default Re: Secure Html Images ?

How about CSS Images ?
Define a CSS class and give it the property background-image and others.

Be sure to deny access to the CSS file using apache .htaccess

Code:
<FilesMatch *.css>
Order allow,deny
Deny from All
</FilesMatch>
Place the above code in the directory where you store the CSSes in a file called .htaccess
__________________
KDE on ArchLinux
PHP, MySQL, PostgreSQL, Linux, Apache; Message me to hire (freelancing only)
Explore Technology @ http://www.itech7.com
Cheap and Reliable VPS Hosting @ http://j.mp/arHk5e
The Unknown is offline  
Old 10-02-2008, 09:14 AM   #6 (permalink)
Banned
 
slugger's Avatar
 
Join Date: May 2004
Location: Baudland
Posts: 2,433
Default Re: Secure Html Images ?

but if a person save the page on his HDD, then nobody can be stopped from accessing the images

not a very hard thing to figure out
slugger is offline  
Old 10-02-2008, 09:39 AM   #7 (permalink)
Wise Old Owl
 
Join Date: Jun 2004
Location: Delhi
Posts: 1,466
Default Re: Secure Html Images ?

THe best method I have found which is very secure & full proof is not put ur images on the web (public domain).....................nobody will see it ................hence nobody will want to steal it.

Rest all methods fail.

Web was meant for public sharing thats why its WWW.
__________________
E6300@3.304Ghz,P5B-Dlx Wifi, 4GB Transcend DDR2 800Mhz, XFX 7600GT,Lenovo 20"Widescreen LCD, Seagate SATA2 HDD 1.5TBx2,Sony DVDRW,Creative 4.1 speakers,APC UPS 800VA,Logitech wireless mouse.
ranjan2001 is offline  
Old 10-02-2008, 09:59 AM   #8 (permalink)
Wise Old Owl
 
The Unknown's Avatar
 
Join Date: Nov 2006
Location: Pune, Maharashtra, India
Posts: 1,728
Default Re: Secure Html Images ?

Quote:
Originally Posted by slugger View Post
but if a person save the page on his HDD, then nobody can be stopped from accessing the images

not a very hard thing to figure out
suppose you store the images under a uncommon directory i.e. other than img or images ; and use CSS method, then how will you steal images ?
__________________
KDE on ArchLinux
PHP, MySQL, PostgreSQL, Linux, Apache; Message me to hire (freelancing only)
Explore Technology @ http://www.itech7.com
Cheap and Reliable VPS Hosting @ http://j.mp/arHk5e
The Unknown is offline  
Old 10-02-2008, 10:25 AM   #9 (permalink)
vaibhavtek
Guest
 
Posts: n/a
Cool Re: Secure Html Images ?

There is a software that do that here

There is also a script:-
Put this on <head> section:-

<script type="text/javascript">
<!-- Begin
function whichElement(event) {
var tname
tname=event.srcElement.tagName
if (event.button==2 && tname=="IMG"){pressed="picture"}
if (pressed=="picture")
{window.alert("Oops !! Sorry !!")}
pressed=0
}
//-->
</script>

and whre u insert image type this
:-
<img border="0" src="image path" onmousedown="whichElement(event)" usemap="#FPMap4"></p>

Hope it helps...!!!

The site : carmelite.netfirms.com is half made by me just visit there and goto Snaps section and right click the image.

In the last line of the HomePage see it is written:-
Maintained By: Vaibhav.

Last edited by vaibhavtek; 10-02-2008 at 10:29 AM. Reason: Automerged Doublepost
 
Old 10-02-2008, 10:40 AM   #10 (permalink)
Wise Old Owl
 
The Unknown's Avatar
 
Join Date: Nov 2006
Location: Pune, Maharashtra, India
Posts: 1,728
Default Re: Secure Html Images ?

Quote:
Originally Posted by vaibhavtek View Post
There is a software that do that here

There is also a script:-
Put this on <head> section:-

<script type="text/javascript">
<!-- Begin
function whichElement(event) {
var tname
tname=event.srcElement.tagName
if (event.button==2 && tname=="IMG"){pressed="picture"}
if (pressed=="picture")
{window.alert("Oops !! Sorry !!")}
pressed=0
}
//-->
</script>

and whre u insert image type this
:-
<img border="0" src="image path" onmousedown="whichElement(event)" usemap="#FPMap4"></p>

Hope it helps...!!!

The site : carmelite.netfirms.com is half made by me just visit there and goto Snaps section and right click the image.

In the last line of the HomePage see it is written:-
Maintained By: Vaibhav.
what about browsers who have disabled JS ?

also don't forget bots. they index images especially Google shows them in image results.
__________________
KDE on ArchLinux
PHP, MySQL, PostgreSQL, Linux, Apache; Message me to hire (freelancing only)
Explore Technology @ http://www.itech7.com
Cheap and Reliable VPS Hosting @ http://j.mp/arHk5e
The Unknown is offline  
Old 10-02-2008, 10:42 AM   #11 (permalink)
Wise Old Owl
 
Join Date: Jun 2004
Location: Delhi
Posts: 1,466
Default Re: Secure Html Images ?

Quote:
Originally Posted by The Unknown View Post
suppose you store the images under a uncommon directory i.e. other than img or images ; and use CSS method, then how will you steal images ?
U seem to be ignoring the fact that css or no css the images still have to download to my computer & then I can do what ever I want.

Just go to IE temp folder & get the image...........................worse I can always take a screenshot.

Best method is not to post the image on the web.
Web is for showcasing & sharing not meant for securing, have u ever seen military maps on the web?
why not?
__________________
E6300@3.304Ghz,P5B-Dlx Wifi, 4GB Transcend DDR2 800Mhz, XFX 7600GT,Lenovo 20"Widescreen LCD, Seagate SATA2 HDD 1.5TBx2,Sony DVDRW,Creative 4.1 speakers,APC UPS 800VA,Logitech wireless mouse.
ranjan2001 is offline  
Old 10-02-2008, 11:31 AM   #12 (permalink)
Wise Old Owl
 
The Unknown's Avatar
 
Join Date: Nov 2006
Location: Pune, Maharashtra, India
Posts: 1,728
Default Re: Secure Html Images ?

Quote:
Originally Posted by ranjan2001 View Post
U seem to be ignoring the fact that css or no css the images still have to download to my computer & then I can do what ever I want.

Just go to IE temp folder & get the image...........................worse I can always take a screenshot.

Best method is not to post the image on the web.
Web is for showcasing & sharing not meant for securing, have u ever seen military maps on the web?
why not?
you can prevent caching also by the HTTP header definition no-store

http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html
__________________
KDE on ArchLinux
PHP, MySQL, PostgreSQL, Linux, Apache; Message me to hire (freelancing only)
Explore Technology @ http://www.itech7.com
Cheap and Reliable VPS Hosting @ http://j.mp/arHk5e
The Unknown is offline  
Old 10-02-2008, 12:26 PM   #13 (permalink)
Wise Old Owl
 
Join Date: Jun 2004
Location: Delhi
Posts: 1,466
Default Re: Secure Html Images ?

Quote:
Originally Posted by The Unknown View Post
you can prevent caching also by the HTTP header definition no-store

http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html
It wont let u save the image in cache for sure but you can still get the image from the cache without closing the browser.
No cache is only meant that once the browser is closed the the image should be deleted.

U always have the print screen & if u can find a way to disable that then there are many softwares to record the screen....................u have to find another method to disable these software too..................so the moral of the story is either be on the web or don't be on the web.
__________________
E6300@3.304Ghz,P5B-Dlx Wifi, 4GB Transcend DDR2 800Mhz, XFX 7600GT,Lenovo 20"Widescreen LCD, Seagate SATA2 HDD 1.5TBx2,Sony DVDRW,Creative 4.1 speakers,APC UPS 800VA,Logitech wireless mouse.
ranjan2001 is offline  
Old 10-02-2008, 12:48 PM   #14 (permalink)
Wise Old Owl
 
The Unknown's Avatar
 
Join Date: Nov 2006
Location: Pune, Maharashtra, India
Posts: 1,728
Default Re: Secure Html Images ?

Quote:
Originally Posted by ranjan2001 View Post
It wont let u save the image in cache for sure but you can still get the image from the cache without closing the browser.
No cache is only meant that once the browser is closed the the image should be deleted.

U always have the print screen & if u can find a way to disable that then there are many softwares to record the screen....................u have to find another method to disable these software too..................so the moral of the story is either be on the web or don't be on the web.
__________________
KDE on ArchLinux
PHP, MySQL, PostgreSQL, Linux, Apache; Message me to hire (freelancing only)
Explore Technology @ http://www.itech7.com
Cheap and Reliable VPS Hosting @ http://j.mp/arHk5e
The Unknown is offline  
Old 10-02-2008, 07:43 PM   #15 (permalink)
vaibhavtek
Guest
 
Posts: n/a
Cool Re: Secure Html Images ?

Quote:
Originally Posted by The Unknown View Post
what about browsers who have disabled JS ?

also don't forget bots. they index images especially Google shows them in image results.
I know only by JS.
I disabled i donot know how to then blick image.
And infact it can also be done by php but as i donot know that i cannot help.
Sorry..
But I am learning php...
 
Old 10-02-2008, 07:56 PM   #16 (permalink)
हॉर्न ओके प्लीज़
 
victor_rambo's Avatar
 
Join Date: Sep 2007
Posts: 1,493
Default Re: Secure Html Images ?

Quote:
Originally Posted by vaibhavtek View Post
I know only by JS.
I disabled i donot know how to then blick image.
And infact it can also be done by php but as i donot know that i cannot help.
Sorry..
But I am learning php...
PHP?
Isn't it supposed to be a server side language?
btw it can't be done with PHP.
__________________
विक्टर रॅंबो - चाणकया प्रभावित व्यक्ति

गीक होना माँगता
victor_rambo is offline  
Old 10-02-2008, 09:09 PM   #17 (permalink)
Wise Old Owl
 
The Unknown's Avatar
 
Join Date: Nov 2006
Location: Pune, Maharashtra, India
Posts: 1,728
Default Re: Secure Html Images ?

Quote:
Originally Posted by vaibhavtek View Post
I know only by JS.
I disabled i donot know how to then blick image.
And infact it can also be done by php but as i donot know that i cannot help.
Sorry..
But I am learning php...
its impossible to do in PHP

PHP generates HTML !!!!
__________________
KDE on ArchLinux
PHP, MySQL, PostgreSQL, Linux, Apache; Message me to hire (freelancing only)
Explore Technology @ http://www.itech7.com
Cheap and Reliable VPS Hosting @ http://j.mp/arHk5e
The Unknown is offline  
Old 10-02-2008, 11:32 PM   #18 (permalink)
Wise Old Owl
 
Join Date: Jun 2004
Location: Delhi
Posts: 1,466
Default Re: Secure Html Images ?

Secure Image Pro OSX 4.0 can do what u want & I can copy the images when u use this, want to try????
http://www.download3000.com/download_21817.html
__________________
E6300@3.304Ghz,P5B-Dlx Wifi, 4GB Transcend DDR2 800Mhz, XFX 7600GT,Lenovo 20"Widescreen LCD, Seagate SATA2 HDD 1.5TBx2,Sony DVDRW,Creative 4.1 speakers,APC UPS 800VA,Logitech wireless mouse.
ranjan2001 is offline  
Old 11-02-2008, 10:43 AM   #19 (permalink)
हॉर्न ओके प्लीज़
 
victor_rambo's Avatar
 
Join Date: Sep 2007
Posts: 1,493
Default Re: Secure Html Images ?

^ but how about screenshot using printscreen?
__________________
विक्टर रॅंबो - चाणकया प्रभावित व्यक्ति

गीक होना माँगता
victor_rambo is offline  
Old 11-02-2008, 10:48 AM   #20 (permalink)
Wise Old Owl
 
hullap's Avatar
 
Join Date: Dec 2006
Location: delhi
Posts: 1,429
Default Re: Secure Html Images ?

apply a water mark.
hullap is offline  
Old 11-02-2008, 11:12 AM   #21 (permalink)
Rubik's Uncle!!
 
Charan's Avatar
 
Join Date: Sep 2004
Location: ಬೆಂಗಳೂರು (Bengaluru)
Posts: 3,789
Default Re: Secure Html Images ?

eh? comeon guys , all the images are cached before rendering, Just looking into Cache folder of the browser will give everyimage loaded. Once its loaded into memory it can be copied by any means. bestway to protect you images will be either watermark or my having creative common licence to it.

@booster : stop wasting time to learn how to avoid people to copy your image. Learn how to make the copied image always show you name/site.
__________________
i5 2400 | DH67BL | G.Skill Ripjaw 4 GB | FSP SAGA II 500W | CM 430 Black Elite | MSI R6850 Cyclone PE/OC | XBox 360 Controller | 21.5" Samsung Sync Master 2233 | 4 Mbps @75GB FUP :)
Battlefield 3 Multiplayer Discussion | Battlefield 3 Low Latency Servers List
Charan is online now  
Old 11-02-2008, 11:26 AM   #22 (permalink)
Wise Old Owl
 
hullap's Avatar
 
Join Date: Dec 2006
Location: delhi
Posts: 1,429
Default Re: Secure Html Images ?

see my avatar iv taken it from here.http://downloads.manutd.com/graphics...ship%20Winners
they hav protected the image by putting another image on it.
wht did i do?? simple i pressed the view source button
and voila \m/



IF they would hav applied a water mark then id be
SO U APPLY A WATERMARK
hullap is offline  
Old 11-02-2008, 01:27 PM   #23 (permalink)
Wise Old Owl
 
The Unknown's Avatar
 
Join Date: Nov 2006
Location: Pune, Maharashtra, India
Posts: 1,728
Default Re: Secure Html Images ?

Quote:
Originally Posted by Charan View Post
eh? comeon guys , all the images are cached before rendering, Just looking into Cache folder of the browser will give everyimage loaded. Once its loaded into memory it can be copied by any means. bestway to protect you images will be either watermark or my having creative common licence to it.

@booster : stop wasting time to learn how to avoid people to copy your image. Learn how to make the copied image always show you name/site.
What purpose is that CC license going to serve ? huh. even on CC license, if i copy an image and modify it using GIMP and use it somewhere else is it going to be found ?

So the moral of the problem is either don't place images on the web or don't try to protect them if placed.
__________________
KDE on ArchLinux
PHP, MySQL, PostgreSQL, Linux, Apache; Message me to hire (freelancing only)
Explore Technology @ http://www.itech7.com
Cheap and Reliable VPS Hosting @ http://j.mp/arHk5e
The Unknown is offline  
Old 11-02-2008, 01:42 PM   #24 (permalink)
Rubik's Uncle!!
 
Charan's Avatar
 
Join Date: Sep 2004
Location: ಬೆಂಗಳೂರು (Bengaluru)
Posts: 3,789
Default Re: Secure Html Images ?

Quote:
Originally Posted by The Unknown View Post
What purpose is that CC license going to serve ? huh. even on CC license, if i copy an image and modify it using GIMP and use it somewhere else is it going to be found ?

So the moral of the problem is either don't place images on the web or don't try to protect them if placed.
CC licence allows you to show/distribute you work with peace of mind, if anyone tries to take advantage of your work then you can sue them. Its similar to GNU, wodnt FOSS comunity sue me if I use code which comes under GNU, modify it and sell it without GNU licence.
__________________
i5 2400 | DH67BL | G.Skill Ripjaw 4 GB | FSP SAGA II 500W | CM 430 Black Elite | MSI R6850 Cyclone PE/OC | XBox 360 Controller | 21.5" Samsung Sync Master 2233 | 4 Mbps @75GB FUP :)
Battlefield 3 Multiplayer Discussion | Battlefield 3 Low Latency Servers List
Charan is online now  
Old 11-02-2008, 02:04 PM   #25 (permalink)
Wise Old Owl
 
The Unknown's Avatar
 
Join Date: Nov 2006
Location: Pune, Maharashtra, India
Posts: 1,728
Default Re: Secure Html Images ?

Quote:
Originally Posted by Charan View Post
CC licence allows you to show/distribute you work with peace of mind, if anyone tries to take advantage of your work then you can sue them. Its similar to GNU, wodnt FOSS comunity sue me if I use code which comes under GNU, modify it and sell it without GNU licence.
suppose if nobody is informed of the copyright infringement ?
__________________
KDE on ArchLinux
PHP, MySQL, PostgreSQL, Linux, Apache; Message me to hire (freelancing only)
Explore Technology @ http://www.itech7.com
Cheap and Reliable VPS Hosting @ http://j.mp/arHk5e
The Unknown is offline  
Old 11-02-2008, 02:10 PM   #26 (permalink)
Rubik's Uncle!!
 
Charan's Avatar
 
Join Date: Sep 2004
Location: ಬೆಂಗಳೂರು (Bengaluru)
Posts: 3,789
Default Re: Secure Html Images ?

^^^ .. dude .. thats the problem .. no matter what you do to protect you work it gets stolen. thats why the rules come in .. give your works with a rule. Microsoft does it with EULA , where as L!nux does it with GNU. in both case, if borken then the person can be sued. Finding out who broke it depends on the orginal author.
__________________
i5 2400 | DH67BL | G.Skill Ripjaw 4 GB | FSP SAGA II 500W | CM 430 Black Elite | MSI R6850 Cyclone PE/OC | XBox 360 Controller | 21.5" Samsung Sync Master 2233 | 4 Mbps @75GB FUP :)
Battlefield 3 Multiplayer Discussion | Battlefield 3 Low Latency Servers List
Charan is online now  
Old 11-02-2008, 04:24 PM   #27 (permalink)
ax3
Cool as a CUCUMBAR ! ! !
 
ax3's Avatar
 
Join Date: Dec 2003
Posts: 5,052
Default Re: Secure Html Images ?

have visited some sites where this thing was done .... cant remember the name bt will post asap ....

img r stored in their servers & not in ur cache\TIfiles .... amazing coding ....

will definately search & post ..... even i had posted this ? longtime back bt no ans .....
__________________
... W H O T ...
ax3 is offline  
Old 11-02-2008, 05:37 PM   #28 (permalink)
Wise Old Owl
 
The Unknown's Avatar
 
Join Date: Nov 2006
Location: Pune, Maharashtra, India
Posts: 1,728
Default Re: Secure Html Images ?

Quote:
Originally Posted by ax3 View Post
have visited some sites where this thing was done .... cant remember the name bt will post asap ....

img r stored in their servers & not in ur cache\TIfiles .... amazing coding ....

will definately search & post ..... even i had posted this ? longtime back bt no ans .....
This non-caching feature is due to the HTTP header no-cache and no-store.
__________________
KDE on ArchLinux
PHP, MySQL, PostgreSQL, Linux, Apache; Message me to hire (freelancing only)
Explore Technology @ http://www.itech7.com
Cheap and Reliable VPS Hosting @ http://j.mp/arHk5e
The Unknown is offline  
Old 11-02-2008, 10:04 PM   #29 (permalink)
In The Zone
 
sms_solver's Avatar
 
Join Date: Jan 2004
Location: somewhere
Posts: 420
Default Re: Secure Html Images ?

use Flash to embed images.
__________________
[ॐ एसएमएस॰सोल्भर ॐ]
sms_solver is offline  
Old 11-02-2008, 10:27 PM   #30 (permalink)
Wise Old Owl
 
The Unknown's Avatar
 
Join Date: Nov 2006
Location: Pune, Maharashtra, India
Posts: 1,728
Default Re: Secure Html Images ?

Quote:
Originally Posted by sms_solver View Post
use Flash to embed images.
it will lead to running away of visitors as flash take much longer to load than normal images and also some visitors may not have flash player installed.

Even if we embed it, we can still capture the image using Print Screen!!!
__________________
KDE on ArchLinux
PHP, MySQL, PostgreSQL, Linux, Apache; Message me to hire (freelancing only)
Explore Technology @ http://www.itech7.com
Cheap and Reliable VPS Hosting @ http://j.mp/arHk5e
The Unknown 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


Similar Threads
Thread Thread Starter Forum Replies Last Post
downloading images in an html page callmeastha Internet & WWW 2 05-07-2007 08:17 AM
HTML to Compiled HTML(.chm) [A]bu QnA (read only) 3 20-04-2007 10:08 PM
want to be more secure.........! Binay 007 Open Source 2 07-04-2007 10:33 PM
HTML to images lamrinnirmal QnA (read only) 2 20-07-2005 07:42 PM
HI5.com secure ? vijaythefool QnA (read only) 18 04-03-2005 02:40 PM

 
Latest Threads
- by ico
- by clinton
- by icebags
- by Charan
- by Piyush

Advertisement




All times are GMT +5.5. The time now is 12:45 AM.


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

Search Engine Optimization by vBSEO 3.3.2