Results 1 to 4 of 4

Thread: Need Help

  1. #1
    Join Date
    May 2010
    Posts
    14
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Need Help

    Guys, I am working on a website, I want to restirct viewers from right clicking, copying or selecting the texts on the website... anyone with help?

  2. #2
    Join Date
    Sep 2008
    Location
    Bristol - UK
    Posts
    842
    Thanks
    32
    Thanked 132 Times in 131 Posts

    Default

    This is the wrong section for that sort of question.

    You want the JavaScript section.

  3. #3
    Join Date
    Oct 2009
    Posts
    845
    Thanks
    14
    Thanked 189 Times in 188 Posts

    Default

    http://www.dynamicdrive.com/dynamicindex9/noright.htm. Don't know about copy and select.

  4. #4
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    [Moved thread to right section.]

    This is a terrible idea. I'm not being critical of you, and many new designers want to do this, but there are many reasons not to do it. Generally, it is because there are always ways around this sort of "security" and it will actually just cause problems for honest visitors. I guarantee that it will make your site worse.

    At best you will block the honest visitors from nondestructive behavior (copying a paragraph and emailing it to a friend, or saving an image for personal use) and those that would do these things for bad reasons (such as stealing content for their own webpages) will know how to get around your "security" and it will be useless. Therefore, it will be useless and annoying.

    (There are a handful of good reasons for this, and they all include making very complicated web applications where you actually include alternative functionality such as a special context menu. But even then, it is not entirely reliable and only works in certain browsers, and not on all devices. Additionally, in those cases it serves a different purpose, and is not intended for security, and it does not create "security".)


    As a general solution, you can position a fixed-position div 100% height/width over the whole screen, with a transparent background. I believe that will, superficially, disable everything you are describing. I don't recommend doing this though.
    Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

Bookmarks

Posting Permissions

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