473,385 Members | 1,752 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Disable browser save as command

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 2336
acoder
16,027 Expert Mod 8TB
Sorry that's not possible with Javascript.

If you want to protect images, watermark them.
Aug 23 '07 #2
pbmods
5,821 Expert 4TB
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 100+
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
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 Expert 4TB
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
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" ...
5
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...
9
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...
6
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...
29
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...
3
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...
0
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...
1
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
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
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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,...
0
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...
0
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,...
0
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...

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.