Wrox Programmer Forums
|
Classic ASP Professional For advanced coder questions in ASP 3. NOT for ASP.NET 1.0, 1.1, or 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Professional section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old October 15th, 2003, 04:24 AM
Authorized User
 
Join Date: Jul 2003
Posts: 56
Thanks: 0
Thanked 0 Times in 0 Posts
Default How Can I Lock Images on a Website?

Hi there

Is it possible to 'lock' images on a website to stop people nicking your pictures? I'm guessing you'd have to stop someone being able to right click on the image and choosing 'save target as'.

Any ideas?

Also, is it possible to 'lock' your code so that if someone right clicks on a website and chooses 'view source' they cannot see the code?

Thanks in advance

Lucy

 
Old October 15th, 2003, 06:13 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Nope. No way.

You can try to make it harder for people to steal them, but not impossible. The browser will need to access the image on your server to display it in the browser. When it has downloaded the image, it will usually save a local copy of it in your cache folder. So, even if you block access to the image in the page, it's easy to retrieve it from the local disk. The same applies to code like JavaScript / HTML / DHTML.

Using JavaScript to block right-clicking is IMO the best way to drive away users from your site. (Which may help in protecting your content ;) )It's user unfriendly (you take away the possibility to use Back, Select All, Refresh and other useful features from the context menu) and it also doesn't work. It's pretty easy to temporarily disable JavaScript so you can access the page's source.

If you want to block access to your images, don't put them on-line. Alternatively, you can take a look at protected PDF's. But even then, users can simply take a screen shot of your image and use that.

The best way to protect your intellectual property is to make it copy-right protected. This way, visitors can steal your stuff but are not allowed to use it.

Cheers,

Imar

---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
 
Old October 17th, 2003, 11:15 AM
Authorized User
 
Join Date: Jul 2003
Posts: 56
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks for the information Imar - you've been a great help.

Regards

Lucy

 
Old November 30th, 2004, 11:09 AM
Registered User
 
Join Date: Nov 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
quote:Originally posted by Imar
 Nope. No way.

You can try to make it harder for people to steal them, but not impossible. The browser will need to access the image on your server to display it in the browser. When it has downloaded the image, it will usually save a local copy of it in your cache folder. So, even if you block access to the image in the page, it's easy to retrieve it from the local disk. The same applies to code like JavaScript / HTML / DHTML.

Using JavaScript to block right-clicking is IMO the best way to drive away users from your site. (Which may help in protecting your content ;) )It's user unfriendly (you take away the possibility to use Back, Select All, Refresh and other useful features from the context menu) and it also doesn't work. It's pretty easy to temporarily disable JavaScript so you can access the page's source.

If you want to block access to your images, don't put them on-line. Alternatively, you can take a look at protected PDF's. But even then, users can simply take a screen shot of your image and use that.

The best way to protect your intellectual property is to make it copy-right protected. This way, visitors can steal your stuff but are not allowed to use it.

Cheers,

Imar

---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
Hi Imar, I had almost the same question.... I need to have a couple of pics copyrighted as they will actually be used for business and I need to post them on a site (that is not mine and I want to make sure the people that visit know who made them) so my question is: when you say to copy-right protect them do u mean to just place a © sign on them? Or is there another way to copyright them? If you check my page under CD project you will see what I need to © ... Thanks PS: Uselss to ask the webmaster of the other page to link them back to mine as he's not a professional and he doesn't understand what I am asking to him... I should then write him the HTML page but that's his job (if you understand what I mean)

 
Old November 30th, 2004, 02:47 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

I was actually referring to legal copyrights. I am not a legal expert, but I think you can protect your copyright by law by somehow registering yourself as the legal owner of the material.

Alternatively, you can put a layer of copyright text on the image. This is a technique I have used a couple of times in Web sites where you can buy images on-line. The large preview image has a copyright text on top of the image, which basically cripples the images so bad it can no longer be used on a site, or for print directly, while you can still allow your users to preview the image....

Cheers,

Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Lock carumuga SQL Server 2000 1 June 18th, 2008 03:07 PM
Dynamic website to Static website Aboal3ood ASP.NET 1.x and 2.0 Application Design 4 December 7th, 2006 11:46 AM
lock the screen darthziv Pro VB.NET 2002/2003 0 December 4th, 2005 03:59 AM
How do i lock ? abdusalam SQL Server 2000 1 September 28th, 2004 03:26 AM
images appear different on my website doll deluxe Dreamweaver (all versions) 2 August 14th, 2004 06:19 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.