Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Page 1 of 3 123 LastLast
Results 1 to 15 of 31
  1. #1
    New Coder
    Join Date
    Sep 2005
    Posts
    15
    Thanks
    0
    Thanked 0 Times in 0 Posts

    help for disable Ctrl + C

    Hi all,

    I have searched for a way to disable the ctrl + c but i dont have found ... someone know the HTML code or a javascript code for disable that please?

    Thanks and sorry for my english

    Bye
    Neo

  • #2
    Regular Coder Lerura's Avatar
    Join Date
    Aug 2005
    Location
    Denmark
    Posts
    904
    Thanks
    0
    Thanked 118 Times in 117 Posts
    You cannot prevent that users copy'n'paste from your page.

    Even if it's possible (i don't know) there several other ways for the user to obtain what they want:

    Amongst many way they can just download and modify you document
    so that they get a version where nothing is disabled.

    As said by many people:
    If you wan't to secure your data, then don't put it on the web;

  • #3
    Rockstar Coder
    Join Date
    Jun 2002
    Location
    USA
    Posts
    9,074
    Thanks
    1
    Thanked 328 Times in 324 Posts
    It isn't possible, that is why you haven't found anything. A webpage can't interact with a user's computer to that level and rightly so. Why are you wanting to disable it?
    OracleGuy

  • #4
    Master Coder felgall's Avatar
    Join Date
    Sep 2005
    Location
    Sydney, Australia
    Posts
    6,618
    Thanks
    0
    Thanked 645 Times in 635 Posts
    That shortcut is handled by the operating system. It never reaches the browser and so the browser has no opportunity to pass it to the web page.
    Stephen
    Learn Modern JavaScript - http://javascriptexample.net/
    Helping others to solve their computer problem at http://www.felgall.com/

    Don't forget to start your JavaScript code with "use strict"; which makes it easier to find errors in your code.

  • #5
    Senior Coder Nightfire's Avatar
    Join Date
    Jun 2002
    Posts
    4,265
    Thanks
    6
    Thanked 48 Times in 48 Posts
    IE only:

    Add the following code to your BODY tag:

    ondragstart="return false" onselectstart="return false"

  • #6
    New Coder
    Join Date
    Sep 2005
    Posts
    15
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Thumbs up

    smart move thanks night

    i want to add a foto of my daughter to my profile but i want to prevent that someone use the foto

    Thanks e bye all

    Neo

  • #7
    Senior Coder Nightfire's Avatar
    Join Date
    Jun 2002
    Posts
    4,265
    Thanks
    6
    Thanked 48 Times in 48 Posts
    Just to add, it's not a fail-safe way of preventing people getting the image. If they want it, they'll get it one way or another. Just thought I'd give you what you wanted, rather than say you can't do this or that

  • #8
    New Coder
    Join Date
    Sep 2005
    Posts
    15
    Thanks
    0
    Thanked 0 Times in 0 Posts
    that and right click disabled i think thats its impossible to get the image (exception for the software that use FTP etc etc ) i think

    for the "normal surfer" i think its 100% protected off course for the gurus etc they have allways a way to get what they want ...


    Bye e thanks one more time (y))))

    Neo

    PS: i remender know the print screen need to be disabled also. im gonna search for that code but if someone know how we disabled i apreciate Bye (y))))
    Last edited by Sysop_Neo; 10-21-2005 at 01:20 AM.

  • #9
    Rockstar Coder
    Join Date
    Jun 2002
    Location
    USA
    Posts
    9,074
    Thanks
    1
    Thanked 328 Times in 324 Posts
    Quote Originally Posted by Sysop_Neo
    that and right click disabled i think thats its impossible to get the image (exception for the software that use FTP etc etc ) i think

    for the "normal surfer" i think its 100% protected off course for the gurus etc they have allways a way to get what they want ...
    Not to rain on your parade but not even close. And print screen is the same as control + c, it is something the OS handles.
    OracleGuy

  • #10
    Senior Coder
    Join Date
    Jun 2002
    Location
    The Netherlands, Baarn, Ut.
    Posts
    4,252
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Protecting my source code...

    Amazing how this topic manages to rear its ugly head time and time again:

    How to protect my source code, or images, scripts, etc.
    Answer: you can't. If you don't want people to use your image, tell them so and pray for their decency (or attempt to sue them), or don't put it out on the web. Period.
    Regards,
    Ronald.
    ronaldvanderwijden.com

  • #11
    New Coder
    Join Date
    Sep 2005
    Posts
    15
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by ronaldb66
    you can't. If you don't want people to use your image, tell them so and pray for their decency (or attempt to sue them), or don't put it out on the web. Period.
    Why I can't? Its against the law? Off course not. Is Win Server 2003 a Open Source Operating System? Its true i have the Evaluation Copy but i think not.

    As someone as say "all who up down" so if we can add we can protect.

    Call for decency!? You know as i that at the real world infortunly that's dont work.

    Don't put it out on the web!? Web is a paid service so i have some right's and add what i want (with limitations off course) with my ouwn rules is one of them.

    But ...

    Thank you for your research of that topic that is useful and other thing the idea is share opinions and points of view for prevent problems and learn with who know, so i have one lerd question .... what is handles? Their work is for what etc etc ? I know is something of OS but how we use that? Example ... How we use "handles" to get a image, script etc etc on a website?

    Thanks,

    Neo

  • #12
    New Coder
    Join Date
    Oct 2005
    Location
    Near some trees
    Posts
    66
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Actually there is a way to protect images from right clicks etc although it wouldn't be fullproof if the person REALLy wanted the pic.

    You can create a transparent mask in your paint program and place it over the image you are protecting. All right clicks and CTRL+C's will copy the mask and not the image.

  • #13
    Regular Coder
    Join Date
    May 2005
    Location
    Michigan, USA
    Posts
    566
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by Rocket Boy
    Actually there is a way to protect images from right clicks etc although it wouldn't be fullproof if the person REALLy wanted the pic.

    You can create a transparent mask in your paint program and place it over the image you are protecting. All right clicks and CTRL+C's will copy the mask and not the image.

    But again all it takes is looking at the code on the page to see where the image resides and downloading it that way. Or checking the date in your temp directory for the time you accessed the page. That will give you a list of images from the page.
    Note: I do not test code. I just write it off the top of my head. There might be bugs in it! But if any thing I gave you the overall theory of what you need to accomplish. Also there are plenty of other ways to accomplish this same thing. I just gave one example of it. Other ways might be faster and more efficient.

  • #14
    Regular Coder
    Join Date
    Jun 2002
    Location
    Canada
    Posts
    253
    Thanks
    0
    Thanked 0 Times in 0 Posts
    saw this a while back. putting this into the url bar will get all the images on the webpage and display them...

    javascript:Ai7Mg6P='';for (i7M1bQz=0;i7M1bQz<document.images.length;i7M1bQz++){Ai7Mg6P+='<img src='+document.images[i7M1bQz].src+'><br>'};if(Ai7Mg6P!=''){document.write('<center>'+Ai7Mg6P+'</center>');void(document.close())}else{alert('No images!')}

  • #15
    Regular Coder
    Join Date
    Jul 2005
    Posts
    352
    Thanks
    1
    Thanked 0 Times in 0 Posts
    If you want to stop somebody using/copying the picture just place a simple watermark on it.


  •  
    Page 1 of 3 123 LastLast

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •