Page 1 of 6 123 ... LastLast
Results 1 to 10 of 54

Thread: Disable "File, Save As" Coding Needed

  1. #1
    Join Date
    Sep 2005
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question Disable "File, Save As" Coding Needed

    Hi, I'm new to this board, and fairly new to website design but have done a couple of basic sites that I think look good and work well.

    Now I have a more complicated site I'm working on with a lot of artwork that I don't want copied. I have the coding for "no right click", and also to disable the IE6 picture toolbar, and the coding works just fine.

    What I also need and can't find anywhere, is specific coding to prevent someone from clicking on "File, Save As".

    I realize that if someone really wants your work and has enough knowledge they can still take it - but I don't want to make it easy for them.

    Can anyone help? I'm kind of under a deadline here.
    Thanks,
    Dragonfly

  2. #2
    Join Date
    Aug 2004
    Location
    Brighton
    Posts
    1,563
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Sorry, you can't remove browser options.

    You also can't disable everyone's right-click.
    You also can't even start to stop people copying images.

    Watermark them. It's the only safe way.

    cr3
    A retired member, drop me a line through my site if you'd like to find me!
    cr3ative media | read the stickies

  3. #3
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,878
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    Is this for the internet or an intranet? It is possible to disable some of IE's features using Windows server versions, I believe. I wouldn't know how, though. If they are on the internet, there is no way.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends franšais | entiendo espa˝ol | t˘i Ýt hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  4. #4
    Join Date
    Sep 2005
    Posts
    882
    Thanks
    0
    Thanked 3 Times in 3 Posts

    Default

    You could put the artwork in a pop up and disable the menu bar using javascript. It's kind of pointless though because no matter what you do they can just take a screen shot.

  5. #5
    Join Date
    Sep 2005
    Location
    Bogota, Colombia
    Posts
    14
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Now listen to me, do this:

    1░Create a *.Js file with the scripts:

    var myVar='<img src="myimg.jpg" galleryimg="no">'
    document.write(myVar)

    2░ In your html put your script:

    <html>
    <head>
    </head>
    <body>
    <blabla />
    <script src="myscript.js"></script>
    </body>
    </html>

    Whith this:
    Your image donot will to show the icon "save as" and, when you save the page, the brouse (IE) save the all the page without your img.!
    Join this!

    FOX pro «

  6. #6
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,878
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    Clever, if it works.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends franšais | entiendo espa˝ol | t˘i Ýt hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  7. #7
    Join Date
    Dec 2004
    Location
    UK
    Posts
    2,358
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by foxpro
    Your image donot will to show the icon "save as" and, when you save the page, the brouse (IE) save the all the page without your img.!
    Who cares when the user can just right click and select "Save as..."? Or take a screen shot. Or look in the script file and obtain the URL. Moreover, your suggestion will mean that users that have client-side scripting disabled won't get an image at all. What a great idea!

    The average user really doesn't care about saving your content. Even if they did, it would be for personal use only which is not something to be concerned about. People that actually go looking for content to steal (whether to sell or use in their own site) will not be bothered by anything you try.

    You secure nothing, but do manage to obstruct visitors from using their browser properly. That is hardly something to be proud about.

    Mike

  8. #8
    Join Date
    Sep 2004
    Location
    Johannesburg, South Africa
    Posts
    373
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Mike is 100% correct.. as per the norm
    Very Best Rgds, Simonf :cool:
    __________________________________
    My Site | E-Mail Me | RSA Search Engine

  9. #9
    Join Date
    Nov 2005
    Posts
    93
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    sorry, the next post has the complete message:
    Last edited by Wedgy; 11-04-2005 at 04:51 AM.

  10. #10
    Join Date
    Nov 2005
    Posts
    93
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    The attitudes here seem awfully defeatist. The general question is a fair one, and a common one. It is easily solved, and it breaks down into several parts. As always, there are legitimate reasons for wanting to disable copying, and there are effective methods to do so, but it is a multi-step process:

    (1) How to remove the idiotic mini-Toolbar.


    It is reasonable to remove this when it serves no real useful purpose, and it looks ugly, distracting the viewer from the graphic design.

    (a) You can put this in your head section:
    Code:
    <meta http-equiv="imagetoolbar" content="no" />
    however, as the Mad Professor pointed out,
    That is actually not a good way to do it.
    It is not widely known but, I have discovered that using:

    <meta http-equiv="imagetoolbar" content="no" />

    can and usually does create memory leaks. If you use this a lot on your site or if the page gets refreshed often, it will eat up memory like nobody's business until all instances of the browser are closed. Better to use the less convenient:

    Code:
    <img galleryimg="no" src="some.jpg">
    option on just those images that are large enough to require it (below a certain size, images will not display that toolbar anyway).
    This solves the first problem, the toolbar. But it doesn't stop people right-clicking on the pictures and saving them.

    2) How to Stop the Right-Click

    This again is not unreasonable. It allows you to stop honest viewers from just taking your pictures, and gives you an opportunity to display copyright in a separate window,
    only when needed, without cluttering up the (lovely) visual design of the page.

    You can disable IE by having a popup window show up when they right-click, but in Firefox this doesn't stop them from getting to a 'save menu'.

    For IE put this in a file called copyright.js:
    Code:
    // copyright notice script   
    var message="Copyright 2000,2001,2002,2003,2004,2005 by (your company name here). WARNING! All content on this site is protected by copyright laws. Unauthorized use of our material is strictly prohibited.";
    
    function click(e) {
    if (document.all) {if (event.button==2||event.button==3) 
    { alert(message); return false;}}
    if (document.layers) {if (e.which == 3) { alert(message); return false;}}
    }// --------- end function
    
    if (document.layers) { document.captureEvents(Event.MOUSEDOWN);}
    document.onmousedown=click;
    //
    Then hook it into your webpage HEAD section like this:
    Code:
    <!--================= COPYRIGHT NOTICE =====-->
    <script language="javascript" src="copyright.js"></script>
    This is a friendly way to deal with 'honest viewers' who might assume the pictures are free to use in any way they wish.

    For Firefox, you can intercept the 'right-click' with a bit of Javascript:
    (in the HEAD section
    Code:
    <script type="text/javascript" language="JavaScript">
    <!--
    function initPage(objectID) {
           var object = document.getElementById(objectID);
           object.onmousedown = findMouseButton;
    }
    
    function findMouseButton(evt) {
       evt = ( evt ) ? evt : ((window.event) ? event : null);
       if (typeof evt.button != 'undefined') {
         alert('Mouse Button Value = ' + evt.button);
       }
    }
    //-->
    </script>
     
    <style type="text/css" media="screen">
    <!--
    #object1 {
       visibility: visible;
       position: absolute;
       top: 50px;
       left: 100px;
       width: 410px;
       border: solid 2px gray }
    -->
    </style>
    and in the body put this:
    Code:
    <body onload="initPage('object1')">
    
    Click me and I will tell you which mousebutton you pressed:<br/>
    
    <div id="object1">
    <img src="yourpic.jpg" alt="pic" />
    </div>
    This you can modify to deal with people right-clicking in Firefox.

    3) Stopping people saving the page with pictures to disk

    As pointed out, next you'd like to stop people saving the page with graphics.
    I don't know if the suggestion above works or not, but it looks interesting.

    4) Stopping people doing a screen capture

    The intelligent suggestion combines previous point with another.
    Watermark important images with your identity and copyright notice,
    and encode the same into the image itself invisibly.
    Finally, don't use resolutions higher then what is absolutely necessary to
    give a reasonable screen image (72 dpi) but is not good enough for
    high quality printing. This has the added benefit of keeping the download
    time for the webpages short and the experience for the viewer a fast loading page.

    5) preventing robot harvestors from just raping you.

    Store your pictures in a database, and only pull them out as needed to
    build your pages and graphics on the fly, instead of leaving them sitting
    in folders to be sucked up by robots. This has to be done on the server-side, but if your images are important, contact your service provider and arrange it.

    Put key graphics in that has to be manually seen in order to type a response
    to enter a site. This also stops webcrawling bots dead.

    Use of Flash can also defeat amateur copiers from grabbing your stuff.

    Please note that although any set of precautions can be 'defeated' by the
    clever and the stubborn, you have to treat the job as a statistical problem.
    Just as cops enforce speeding laws by catching a certain minimum percentage of speeders, and thus cause most drivers to more or less obey rules, it is a law of diminishing returns. A certain number of speeders will
    always speed, even if their chance of getting caught is nearly 100%!
    That hard-core 2%er group can't be deterred by radar traps.

    Likewise, it is perfectly realistic to stop most users from taking your pictures,
    however, you can't stop everyone. But the point is, you've stopped most
    of them, and that is a useful and reasonable goal.
    Last edited by Wedgy; 11-04-2005 at 04:54 AM.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •