Author |
Topic |
|
me
Starting Member
10 Posts |
Posted - August 06 2004 : 18:41:44
|
Hi, I went to a site that had a javascript that said, "Right click disabled" when I went to check out their keywords. Seems like maybe a useful thing to have on a web site. Does anyone know how to implement this?
John
|
|
Cam
VP-CART Super User
Australia
361 Posts |
Posted - August 06 2004 : 21:54:11
|
Hi John,
There is currently no way, as far as I know, to block the source of an HTML page.
If right click is disabled simply go to View in the tool bar of your browser and select Source. Alternatively just save the page to your local machine.
If someone is trying to protect images all you need to is press Prt Scr on your keyboard and you have a copy of the image. So basically at present there is no easy way to protect your site from someone who wants to look at or save images.
So saying I would love to hear from anyone who does know how to do this or whether it is even possible.
Thanks, Cam
************************************* Cam Flanigan YourVirtualStore Sales e-mail: http://www.vpasp.com/sales/shopcustcontact.asp web: http://www.yourvirtualstore.net Build you own YourVirtualStore!!! www.yourvirtualstore.net ************************************* |
|
|
me
Starting Member
10 Posts |
|
Cam
VP-CART Super User
Australia
361 Posts |
|
GTM
VP-CART New User
USA
122 Posts |
Posted - August 07 2004 : 07:31:32
|
There is javascript that you can try and use in the header.
Javascript block right click
Greg
Edited by - GTM on August 07 2004 07:33:17 |
|
|
Alan F
VP-CART New User
102 Posts |
|
jackbox
VP-CART New User
United Kingdom
72 Posts |
Posted - August 17 2004 : 17:01:56
|
http://www.design365.co.uk/images/index.2.jpg
Nope it doesn't - thats the point being made here. You just view source, find the relevant image bit and paste that url into browser - as here. I did come across one method that made it impossible to grab images as they were generated by an entirely different method but can't for the life of me think what it was - damn!
|
|
|
devshb
Senior Member
United Kingdom
1904 Posts |
Posted - August 17 2004 : 17:39:19
|
Here's my 2 cents' worth (people seem to have strong views on this; most people either strongly agree, or they want to kick me in the face for suggesting it! So, remember, this is just a personal view).....
No client-side code is safe no matter what you do; if it's available for your browser to interpret and display as a web-page then there's no way you can block it from being saved/downloaded.
Web-content/programs that are processed/interpreted on the client-side are, by their very definition, in the public domain and there for anyone to copy.
If you want to protect something, then you'll need to hold that code server-side, or at least have some kind of encryption key on it that's linked in with the server-side.
This is why it's a good idea to put as much of your protected-code as possible inside vbscript in asps rather than in pure javascript.
You can disable right-click, and do all other sorts of stuff to make it a tiny bit more awkward for people to copy/save, but anyone can save a webpage and all its contents just by selecting file/save-as on their browser window.
Personally I think that this lack of client-side protection is logically (and legally) correct; if you don't want it shown then don't put it on a client-only file. If you do want it shown then you've got no right to stop it being saved if it's in the public domain.
By putting something in a public domain, you're basically saying "here it is - I'm letting you have it".
If you want to protect something, then it should be held server-side or use some kind of special processing (like the vpasp secure download facility).
I'm not saying that I think that people should be copying stuff off web pages and using it for their own purposes without permission, but what I am saying is that it's no different to having pages in a book; anyone can photocopy a page from a book even though it's protected by copyright; same logic applies to the web. All you can do is put strong copyright notices on the site and prosecute offenders who make money off your copyrighted stuff. There are just some things that you have to risk in this way if you want anyone else other than yourself to see it.
I've got a feeling that web-stuff works in a very similar way to physical media when it comes to copyright (although I could be wrong). If I buy an original music CD then I'm perfectly within my legal rights to make a copy of it as long as I only use that copy for my own purposes (eg to keep one copy in my car, and another copy in my home; I'll only ever be in one of those places at any one time; it's kind of like a one-user-license). Same goes for web images/pages etc; I might have 2 computers, or I might want to view the page off-line; if I had access to view it online, then I should also be able to see it again offline.
Anyway; keep as much as possible server-side to avoid the whole issue.
Simon Barnaby Developer [email protected] www.BigYellowZone.com Web Design, Online Marketing and VPASP addons |
|
|
cridgeon
Starting Member
6 Posts |
Posted - August 20 2004 : 04:51:59
|
A good way of stopping people stealing an image 'easily' by right clicking it and clicking 'save picture as', is to create a table and set the background of the cell as the picture. Simple but effective but again, if they are determined they can just go in the source code and find your image url.
There are some html encrypting programs but i assume search engines will hate your site if you do that and also, its still probably easy to get around.
|
|
|
taylorphoto
VP-CART New User
USA
53 Posts |
Posted - August 28 2004 : 10:28:01
|
i assume posts to this thread are interested in protecting the image that displays. i use photo watermark pro and watermark my images before uplaoding them. then i don't really care if they download the image since they can't really use it for personal use. this is in addition to right click scripts that many people still don't know how to circumvent
|
|
|
|
Topic |
|