09-02-2008, 10:19 PM
|
#1 (permalink)
|
|
In The Zone
Join Date: Oct 2006
Location: Jabalpur
Posts: 325
|
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
|
|
|
|
Advertisements. Register and be a member of the community to get rid of them.
|
|
Advertisement
|
|
09-02-2008, 10:41 PM
|
#2 (permalink)
|
|
Wahahaha~!
Join Date: Dec 2006
Location: Pune/there
Posts: 7,680
|
Re: Secure Html Images ?
javascript,
but a geek will always find a way to crack the measures.
|
|
|
09-02-2008, 10:55 PM
|
#3 (permalink)
|
|
हॉर्न ओके प्लीज़
Join Date: Sep 2007
Posts: 1,493
|
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.
|
|
|
09-02-2008, 11:05 PM
|
#4 (permalink)
|
|
The Devil's Advocate
Join Date: Mar 2006
Location: Masti Ki Paathshaala
Posts: 7,019
|
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
|
|
|
10-02-2008, 08:35 AM
|
#5 (permalink)
|
|
Wise Old Owl
Join Date: Nov 2006
Location: Pune, Maharashtra, India
Posts: 1,728
|
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
|
|
|
10-02-2008, 09:14 AM
|
#6 (permalink)
|
|
Banned
Join Date: May 2004
Location: Baudland
Posts: 2,433
|
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
|
|
|
10-02-2008, 09:39 AM
|
#7 (permalink)
|
|
Wise Old Owl
Join Date: Jun 2004
Location: Delhi
Posts: 1,466
|
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.
|
|
|
10-02-2008, 09:59 AM
|
#8 (permalink)
|
|
Wise Old Owl
Join Date: Nov 2006
Location: Pune, Maharashtra, India
Posts: 1,728
|
Re: Secure Html Images ?
Quote:
Originally Posted by slugger
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
|
|
|
10-02-2008, 10:25 AM
|
#9 (permalink)
|
|
Guest
|
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
|
|
|
|
10-02-2008, 10:40 AM
|
#10 (permalink)
|
|
Wise Old Owl
Join Date: Nov 2006
Location: Pune, Maharashtra, India
Posts: 1,728
|
Re: Secure Html Images ?
Quote:
Originally Posted by vaibhavtek
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
|
|
|
10-02-2008, 10:42 AM
|
#11 (permalink)
|
|
Wise Old Owl
Join Date: Jun 2004
Location: Delhi
Posts: 1,466
|
Re: Secure Html Images ?
Quote:
Originally Posted by The Unknown
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.
|
|
|
10-02-2008, 11:31 AM
|
#12 (permalink)
|
|
Wise Old Owl
Join Date: Nov 2006
Location: Pune, Maharashtra, India
Posts: 1,728
|
Re: Secure Html Images ?
Quote:
Originally Posted by ranjan2001
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
|
|
|
10-02-2008, 12:26 PM
|
#13 (permalink)
|
|
Wise Old Owl
Join Date: Jun 2004
Location: Delhi
Posts: 1,466
|
Re: Secure Html Images ?
Quote:
Originally Posted by The Unknown
|
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.
|
|
|
10-02-2008, 12:48 PM
|
#14 (permalink)
|
|
Wise Old Owl
Join Date: Nov 2006
Location: Pune, Maharashtra, India
Posts: 1,728
|
Re: Secure Html Images ?
Quote:
Originally Posted by ranjan2001
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
|
|
|
10-02-2008, 07:43 PM
|
#15 (permalink)
|
|
Guest
|
Re: Secure Html Images ?
Quote:
Originally Posted by The Unknown
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...
|
|
|
|
10-02-2008, 07:56 PM
|
#16 (permalink)
|
|
हॉर्न ओके प्लीज़
Join Date: Sep 2007
Posts: 1,493
|
Re: Secure Html Images ?
Quote:
Originally Posted by vaibhavtek
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.
__________________
विक्टर रॅंबो - चाणकया प्रभावित व्यक्ति
गीक होना माँगता
|
|
|
10-02-2008, 09:09 PM
|
#17 (permalink)
|
|
Wise Old Owl
Join Date: Nov 2006
Location: Pune, Maharashtra, India
Posts: 1,728
|
Re: Secure Html Images ?
Quote:
Originally Posted by vaibhavtek
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
|
|
|
10-02-2008, 11:32 PM
|
#18 (permalink)
|
|
Wise Old Owl
Join Date: Jun 2004
Location: Delhi
Posts: 1,466
|
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.
|
|
|
11-02-2008, 10:43 AM
|
#19 (permalink)
|
|
हॉर्न ओके प्लीज़
Join Date: Sep 2007
Posts: 1,493
|
Re: Secure Html Images ?
^ but how about screenshot using printscreen?
__________________
विक्टर रॅंबो - चाणकया प्रभावित व्यक्ति
गीक होना माँगता
|
|
|
11-02-2008, 10:48 AM
|
#20 (permalink)
|
|
Wise Old Owl
Join Date: Dec 2006
Location: delhi
Posts: 1,429
|
Re: Secure Html Images ?
apply a water mark.
|
|
|
11-02-2008, 11:12 AM
|
#21 (permalink)
|
|
Rubik's Uncle!!
Join Date: Sep 2004
Location: ಬೆಂಗಳೂರು (Bengaluru)
Posts: 3,789
|
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.
|
|
|
11-02-2008, 11:26 AM
|
#22 (permalink)
|
|
Wise Old Owl
Join Date: Dec 2006
Location: delhi
Posts: 1,429
|
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
|
|
|
11-02-2008, 01:27 PM
|
#23 (permalink)
|
|
Wise Old Owl
Join Date: Nov 2006
Location: Pune, Maharashtra, India
Posts: 1,728
|
Re: Secure Html Images ?
Quote:
Originally Posted by Charan
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
|
|
|
11-02-2008, 01:42 PM
|
#24 (permalink)
|
|
Rubik's Uncle!!
Join Date: Sep 2004
Location: ಬೆಂಗಳೂರು (Bengaluru)
Posts: 3,789
|
Re: Secure Html Images ?
Quote:
Originally Posted by The Unknown
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.
|
|
|
11-02-2008, 02:04 PM
|
#25 (permalink)
|
|
Wise Old Owl
Join Date: Nov 2006
Location: Pune, Maharashtra, India
Posts: 1,728
|
Re: Secure Html Images ?
Quote:
Originally Posted by Charan
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
|
|
|
11-02-2008, 02:10 PM
|
#26 (permalink)
|
|
Rubik's Uncle!!
Join Date: Sep 2004
Location: ಬೆಂಗಳೂರು (Bengaluru)
Posts: 3,789
|
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.
|
|
|
11-02-2008, 04:24 PM
|
#27 (permalink)
|
|
Cool as a CUCUMBAR ! ! !
Join Date: Dec 2003
Posts: 5,052
|
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 ...
|
|
|
11-02-2008, 05:37 PM
|
#28 (permalink)
|
|
Wise Old Owl
Join Date: Nov 2006
Location: Pune, Maharashtra, India
Posts: 1,728
|
Re: Secure Html Images ?
Quote:
Originally Posted by ax3
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
|
|
|
11-02-2008, 10:04 PM
|
#29 (permalink)
|
|
In The Zone
Join Date: Jan 2004
Location: somewhere
Posts: 420
|
Re: Secure Html Images ?
use Flash to embed images.
__________________
[ॐ एसएमएस॰सोल्भर ॐ]
|
|
|
11-02-2008, 10:27 PM
|
#30 (permalink)
|
|
Wise Old Owl
Join Date: Nov 2006
Location: Pune, Maharashtra, India
Posts: 1,728
|
Re: Secure Html Images ?
Quote:
Originally Posted by sms_solver
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
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
|
|