473,790 Members | 2,734 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Disable browser save as command

25 New Member
I would like to protect the content of my web-site pages. Does anyone know how to disable the 'File->Save As' command on a web-browser.
Aug 23 '07 #1
5 2360
acoder
16,027 Recognized Expert Moderator MVP
Sorry that's not possible with Javascript.

If you want to protect images, watermark them.
Aug 23 '07 #2
pbmods
5,821 Recognized Expert Expert
Heya, Blackmore.

The problem with what you are asking is that in order for your browser to view an image, it has to first download the file and save it into your browser's cache folder!

So even if you could disable the 'Save As' command (which could be bypassed simply by turning off JavaScript anyway!), a determined thief could still grab the image from his browser cache.

As Acoder mentioned, the only reliable method for protecting your images is to watermark them, or else to only provide a low-quality preview version.
Aug 23 '07 #3
jx2
228 New Member
I would like to protect the content of my web-site pages. Does anyone know how to disable the 'File->Save As' command on a web-browser.
dont listen to them :-) they are right but there is many ways to deal with problems - but if you ask fo simply solution there is nosimply solution in this case

what r you going to protect? text? images?

jx2
Aug 23 '07 #4
Blackmore
25 New Member
dont listen to them :-) they are right but there is many ways to deal with problems - but if you ask fo simply solution there is nosimply solution in this case

what r you going to protect? text? images?

jx2

To be honest, I want to be able to protect just about everything on my website, including the html content of my pages. Therefore, I want to be able to prevent users from saving the webpage on there hard discs.

I have seen some websites that appear to disable the 'Save As' command on a browser and I want to include this feature on mine.

Regards

Blackmore
Aug 29 '07 #5
pbmods
5,821 Recognized Expert Expert
Heya, Blackmore.

You may want to consider using encrypted PDFs that allow the User to view, but not edit, the contents.

Attempting to 'secure' HTML is simply not a realistic goal, due to the nature of the beast. Your code has to get sent in an open format that any browser can read, and even if you could disable the 'save as' command (which I guarantee you would ONLY work in Internet Explorer anyway), anybody could circumvent your safeguards by disabling JavaScript, pulling the data straight from the cache, using cURL... just to name the three ideas that came to mind most quickly.

I think you really need to rethink your delivery model. If you want to protect your content, then you need to deliver it via a protected medium.
Aug 29 '07 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

21
3267
by: Tony Marston | last post by:
If the use of the browser's BACK button is interfering with the operation of your web application then take a look at this article entitle "Back Button Blues" http://www.tonymarston.co.uk/php-mysql/backbuttonblues.html -- Tony Marston http://www.tonymarston.net
5
3421
by: Barry | last post by:
Hello, I've recently noticed that someone can simply type in the URL to my javaScript, from my HTML source code, to the explorer location bar and an auto-save dialog pops up to let them save it ! My clients want to keep their paid-for code proprietary. How do I prevent this from occuring ? The javaScripts are embedded in my HTML in the following manner:
9
2876
by: Dennis Allen | last post by:
Hi. What's the best way to display an image, disabling the user's ability to right-click on it? I believe you have to use <body oncontextmenu="return false">. Would the following work? var x = "<head><\/head><body oncontextmenu="return false"><img src='temp.jpg' border=0><\/body>" top.document.open()
6
3169
by: nntp | last post by:
I have a set of links which I want search engines to crawl them, but I want to disable them from my visitors, so I will ask the link owners to pay me to let me enable them. <a disabled href="#">bahbahbah</a> Does not work, as it is still clickable. It only changes the color to grey.
29
9783
by: lori3laz | last post by:
How do you disable the right click>view source option on web pages so people can't view your coding and copy it? What's the html I need to include in my website to utilize this feature? Thank you.
3
3890
by: bonehead | last post by:
Okay, here's a question I should have posted a very very long time ago. I'd like to prevent the user from being able to bypass certain error handling and updating functions that are programmed into the "Save" command button. Some of my apps are still running in A97, but most are now running in A2K or subsequent versions. Is it possible to disable the use of hotkey combinations such as "Ctrl+S" in an Access application? If so, how? And...
0
2487
by: And | last post by:
I use shdocvw InternetExplorer Object to open a pdf file and then I want to automatically save it but the web site from wich I'm downloading the file doesn't allows to save the file using the webrequest command so my idea is to save it using the save command from the internet explorer but it still doen't work! The code I am using is the following: Private Sub BtnSave_Click() Dim eQuery As OLECMDID
1
2537
by: vasista2k | last post by:
I would like to protect the content of my web-site pages. Does anyone know how to disable the 'File->Save As' command on a web-browser.
0
1500
by: yomkippur18 | last post by:
Is it possible to disable "Save as " in a picture editor using Vbscript? We want to disable the "save as" command to avoid modification of image.
0
9666
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9512
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10413
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10200
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10145
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9021
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5422
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5551
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
2909
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.