turn off email,save,print,etc on photo

windows

Guest
Hi gang -<br />
I use a small JavaScript to turn off the R/Click action on my web pages. However, I have a page that display thumbnails. When you click on the thumbnail, an enlargement page appears. See all code below. Anyway, even though I have the R/Click disabled, when the mouse pointer is placed on the enlargement, I still get that darn little box showing a floppy, a printer, an envelope and a file folder and theuser can still copy my photo. <br />
<br />
What's the cure?<br />
<br />
Thanks, bigMike<br />
<br />
<br />
Here is a portion of my code:<br />
function popUp1(URL) {<br />
day = new Date();<br />
id = day.getTime();<br />
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=510,height=260,left = 250,top = 300');");<br />
}<br />
function popUp2(URL) {<br />
day = new Date();<br />
id = day.getTime();<br />
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=510,height=322,left = 250,top = 300');");<br />
}<br />
<br />
After this, my JavaScript to stop the R/Click is placed:<br />
<script language="JavaScript"><br />
<!--<br />
// No rightclick script.<br />
// Find more great scripts and applets at the JavaFile!<br />
// <!-- m --><a class="postlink" href="http://www.javafile.com">http://www.javafile.com</a><!-- m --><br />
// Do not delete this header!<br />
<br />
var message="Sorry, we don't allow that on this site!."; // Put your message for the alert box between the quotes.<br />
<br />
// Don't edit below!<br />
<br />
function click(e) {<br />
if (document.all) {<br />
if (event.button == 2) {<br />
alert(message);<br />
return false;<br />
}<br />
}<br />
if (document.layers) {<br />
if (e.which == 3) {<br />
alert(message);<br />
return false;<br />
}<br />
}<br />
}<br />
if (document.layers) {<br />
document.captureEvents(Event.MOUSEDOWN);<br />
}<br />
document.onmousedown=click;<br />
// --> <br />
<br />
</script><!--content-->Luckily, Microsoft have provided us developers with a simple META tag to control the image toolbar in IE6. The following code will explain.<br />
<br />
<meta http-equiv="imagetoolbar" content="no" /><br />
<br />
You can also stop the toolbar on a single image by toggling the galleryimg parameter of the <img> element.<br />
<br />
<img src=http://www.webdeveloper.com/forum/archive/index.php/"yourImg.gif" galleryimg="no" /><br />
<br />
Regards,<br />
Andrew Buntine.<!--content-->Thanks, Andrew. Does this hold only for the IE6 and + ??<br />
<br />
Might be better for me to use the galleryimg parameter on all photo's.<br />
<br />
Thanks again,<br />
<br />
bigMike<!--content-->There is no real way of stopping anyone from getting site code or images. JavaScript can be disabled, and, hence, all the protection with it. The user can always hit [PrintScreen], which cannot be disabled. The only way to keep your photos from being distributed is to not publish them at all. ;)<!--content-->Yes, this works for all versions of IE6. Though, as phill stated, there is no use in trying to stop your visitors from getting images and source code.<br />
<br />
The best method is to watermark your images so they are rendered useless to people who want to steal them.<br />
<br />
Regards.<!--content-->The bottom line is that you CAN'T stop someone from getting a copy of any image on your web site. They had to get a copy to see it in the first place and doing silly things like capturing the r-click will only add about 5 seconds to the time it takes them to get a separate copy.<!--content-->Yeah, I know SOME people could do a screen print and convert or whatever, but MOST people won't know how to do anything about it - I'm happy in stopping MOST people :D<!--content-->Originally posted by bigmikeSOME people could do a screen print and convert or whateverthat takes too long i prefer to use view source + cut/paste url + view source + cut/paste url + steal image + laugh at you<br />
<br />
besides i use mozilla and those disable right clicks don't work on it<!--content-->Fact: Anyone who knows anything about the web will get to your images no matter what you do. If you really are that worried about them getting taken then dont publish them. The best thing that you can do is embed a watermark, then anyone stealing them cant claim them as their own; but that is all that you can do :)<!--content-->Originally posted by PhillMc <br />
Fact: Anyone who knows anything about the web will get to your images no matter what you do. If you really are that worried about them getting taken then dont publish them. The best thing that you can do is embed a watermark, then anyone stealing them cant claim them as their own; but that is all that you can do :) <br />
And that would be the recommended option, rather than disabling right-click, since people use their right-mouse button.<!--content-->I've been in the same place with this... and I've found out that even in IE with Javascript enabled, you can use your mouse buttons to get around all those scripts. In the end it simply becomes a great nuisance to the user as I generally hate sites that disable right click. Unfortunately, the vast majority of web users know little, and those little Javascripts would stop some IE users.<!--content-->To get images I can go up to the view tab and view your source, I can go into my cache, I can save the page images an all, Or since I use mozilla I can disable js from my toolbar. If worst comes to worst I could take a screen shot, so even putting the images in applets (which I believe can also be found in cache in a hidden folder in your user documents) or in flash can't stop me. The only way to stop someone from getting your iamges is not to put it on the internet.<!--content-->GIVE UP ON HIDEING THE IMAGES! As Peo pointed out, no matter what you do, we can and will get them. To be honest, placing these 'security' measures on your site is only gonna make me or just about anyone else that much determined to get them all :D :D<!--content-->Its fun, when people put anti-right-click scripts on their sites, to email them their source code and call them idiots.<!--content-->ROFL!!<br />
<br />
I did that with some fool that actually bouught some JavaScript Site Encryption tool. With all the crap that he had up (all toolbars removed, no right click, and only allowed IE to view [DEAR GOD!!]) I S T I L L got his source and sent it to him ( along with a few comments :p ), he promptly brought down his site. lol.<br />
<br />
This ALONE should tell all that it is IMPOSSIBLE. ALSO, if you disallow any browser from viewing your site then your intelligence rivals only with plant life. :p<!--content-->
 
Back
Top