Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Web Programming > JavaScript > Javascript How-To
Password Reminder
| FAQ | Members List | Search | Today's Posts | Mark Forums Read
Javascript How-To Ask your "How do I do this with Javascript?" questions here.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Javascript How-To section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old May 21st, 2008, 01:30 PM
Registered User
Join Date: Apr 2008
Location: , , .
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default java script to prevent users to copy image...


On java script, how can I disable right click on my page? or to prevent users to copy images on my pages?
I need code for this or just an idea in order to get this...


addiction treatment center.
Reply With Quote
  #2 (permalink)  
Old May 21st, 2008, 05:54 PM
Friend of Wrox
Points: 6,664, Level: 34
Points: 6,664, Level: 34 Points: 6,664, Level: 34 Points: 6,664, Level: 34
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
Join Date: Jan 2004
Location: Sydney, NSW, Australia.
Posts: 1,870
Thanks: 12
Thanked 20 Times in 20 Posts
Send a message via AIM to mat41

Its easy enough to disable the right click button however this is no going to protect images. Without going on and on covering a topic which has been covered to death on this, and most other forums, its just not possible to protect you images the way you are thinking and most other ways.

IMO there is always a way to grab a web site images........including the very last resort, a screen shot.

Wind is your friend
Reply With Quote
  #3 (permalink)  
Old May 22nd, 2008, 06:38 AM
Friend of Wrox
Points: 1,515, Level: 15
Points: 1,515, Level: 15 Points: 1,515, Level: 15 Points: 1,515, Level: 15
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
Join Date: Dec 2003
Location: Oxford, , United Kingdom.
Posts: 488
Thanks: 0
Thanked 3 Times in 3 Posts

Don't. Its technically impossible as well as being annoying to your users. And very much against the spirit of the web. If you don't want people to use your pictures don't put them on the web. See also


Charlie Harvey's website - linux, perl, java, anarchism and punk rock: http://charlieharvey.org.uk
Reply With Quote
  #4 (permalink)  
Old May 23rd, 2008, 12:52 PM
Friend of Wrox
Join Date: Oct 2004
Location: delhi, delhi, India.
Posts: 553
Thanks: 0
Thanked 1 Time in 1 Post
Send a message via MSN to vinod_yadav1919 Send a message via Yahoo to vinod_yadav1919

I Strongly agree with ciderpunx.
Its impossible.You can't stop it to save.
If it is possible please let me know ,so that we all know about it

Cheers :)

Reply With Quote

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Prevent users from accessing the database window JAdkins Access VBA 1 February 2nd, 2008 03:10 PM
Prevent users from using back button?? Phrozt C# 3 January 8th, 2007 11:02 AM
Prevent Printscreen and copy paste Malabika Das ASP.NET 1.0 and 1.1 Professional 0 November 2nd, 2005 07:26 AM
how to prevent image flickering? galatea C# 1 March 12th, 2005 01:09 PM
copy xml to xml (with java script) Umen XML 4 September 14th, 2004 06:51 AM

All times are GMT -4. The time now is 12:17 AM.

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