www.webdeveloper.com
Page 1 of 4 123 ... LastLast
Results 1 to 15 of 57

Thread: Disable or Save As - web page protection

  1. #1
    Join Date
    Sep 2004
    Location
    Trinidad and Tobago
    Posts
    15

    Exclamation Disable "Save As" - for web page protection

    How do I generate "the web page you are trying to save may not....] to prevent surfers from archiving web page?
    Last edited by Albon; 09-21-2004 at 04:55 AM.

  2. #2
    Join Date
    Nov 2002
    Location
    Auburn, AL
    Posts
    9,222
    you cant prevent people from saving a web page. You can mess around in js, you can prevent right click, but everything you try will be useless because we can still get your images and your source code. You cannot disable stuff like that on all browsers, infact its hard to stop someone from getting that data in even ie because of the fact that the user has to download your web page for his browser to read the code... all of your code ends up in his cache which he can just go into and look at. Quit trying to protect your client side source code and images... its impossible.

  3. #3
    Join Date
    Sep 2004
    Location
    Trinidad and Tobago
    Posts
    15

    Exclamation Just the Deterrant Message

    I just wanted something to generate the alert " The web page ......"
    when the use the "save as" from IE menu bar so as to place some
    kind of deterrant as I have recieved from some web sites.

  4. #4
    Join Date
    Jun 2004
    Location
    England
    Posts
    2,972
    Well it might be possible with some nasty IE only script, but even then I doubt it. You'd do a lot better just to have a copyright warning in your footer and leave it at that, otherwise your just getting in the way of letting your visitors use thier browser.

  5. #5
    Join Date
    Mar 2005
    Location
    Sydney, Australia
    Posts
    7,974
    Even if you purchase a $200 program to encrypt your web page anyone can still view the decrypted source using nothing more than a web browser in under 15 seconds.

  6. #6
    Join Date
    Sep 2004
    Location
    Trinidad and Tobago
    Posts
    15

    Post Thanks Ill get back to you with the net examples

    I must solve this issue brb

  7. #7
    Join Date
    Apr 2005
    Location
    NJ
    Posts
    6

    Try this code

    <script language="JavaScript">
    document.onmousedown=click;

    function click() {
    if ((event.button==2)) {
    alert("WARNING Text Here");
    }
    }

    </script>

  8. #8
    Join Date
    Jun 2004
    Location
    England
    Posts
    2,972
    Quote Originally Posted by Zohar Amihud
    <script language="JavaScript">
    I severly hope that you actualy think that'd work. Considering that it's already been explained why it wont work.

  9. #9
    Join Date
    Mar 2005
    Location
    Sydney, Australia
    Posts
    7,974
    The only solution that stops people from being able to save what you have placed into a web page is to put the page into a password protected directory on your site and don't give them the password so that they can't access the page. Only pages that can't be accessed by someone cannot be downloaded by that person.

    Once someone views a web page they already have a copy of the page on their computer that the browser made in order to display the page.

  10. #10
    Join Date
    Sep 2004
    Location
    Trinidad and Tobago
    Posts
    15

    Exclamation Example of Alert Generated by "Save As" IE

    Try saving this web page from the ie menu

    http://www.pcmag.com/print_article2/...=124300,00.asp

    does anyone know whow to generate such an alert message

    Yes or No
    Albon

  11. #11
    Join Date
    Nov 2002
    Location
    XYZZY - UK
    Posts
    1,760
    I got no message and saved itů I use Firefox 1.0.3 and even if you use M$ IE you could disabled JavaScript and a cache page would be downloaded on your PC anyway.

    It's because the page isn't marked up correctly the webmaster has probably never heard of Web Standards it's a UA issue and if you saved as just HTML in IE you won't get that error message.
    Last edited by Robert Wellock; 04-14-2005 at 11:44 AM.

  12. #12
    Join Date
    Jun 2004
    Location
    England
    Posts
    2,972
    I didn't have any touble saving that page in IE or FF, whatever I saved it as.

  13. #13
    Join Date
    Mar 2004
    Posts
    3,056
    I did a whole load of right clicking on that page. "Adblock this advert", "Adblock this advert", "Adblock this"..

    Plenty of adserver addresses there for blocking. It had one of the best of all to block too: ad.doubleclick.net With all the right clicking I did on that page I'll have wiped out about 65% of the adverts I was ever likely to see! Thanks for the link.

  14. #14
    Join Date
    Sep 2003
    Location
    Portsmouth, UK Occupation: Web Developer
    Posts
    2,602
    Quote Originally Posted by Robert Wellock
    I use Firefox 1.0.3
    egh?

  15. #15
    Join Date
    Apr 2004
    Location
    In chair looking at monitor
    Posts
    119
    Where did you get Firefox 1.0.3? I thought 1.0.2 was the latest...

    Also where is the Cache in Firefox? I can't find it.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles